From cc0d80c7d86c6d0167269b3408c4b30c24ce84e9 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 23 三月 2020 16:55:37 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MostRightIconControl.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MostRightIconControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MostRightIconControl.cs index c067539..c4b3515 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MostRightIconControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MostRightIconControl.cs @@ -10,9 +10,9 @@ public class MostRightIconControl : FrameLayoutControl { /// <summary> - /// 鍥炬爣鎺т欢 + /// 鍥炬爣鎺т欢(杩笉寰楀繁锛岃繖涓笢瑗垮紑鏀惧嚭鍘�) /// </summary> - private IconControlCommon btnIcon = null; + public IconControlCommon btnIcon = null; /// <summary> /// UnSelectedImagePath /// </summary> @@ -39,6 +39,14 @@ } /// <summary> + /// X杞寸殑鐪熷疄鍋忕Щ閲�(璇风‘淇濆凡缁忓姞鍏ョ埗鎺т欢) + /// </summary> + public int XOffset + { + get { return (this.Width - btnIcon.Width) / 2; } + } + + /// <summary> /// 鍋氭垚鏀惧湪鐢婚潰鍙宠竟鐨勭殑鍥炬爣鎺т欢(娉ㄦ剰,瀹冧笉鑳界敤鏉ュ仛銆愬悜鍙炽�戠殑鍥炬爣) /// </summary> /// <param name="i_width">鎺т欢绌哄害</param> @@ -46,7 +54,7 @@ public MostRightIconControl(int i_width, int i_height) { this.Width = Application.GetMinRealAverage(110); - this.Height = Application.GetMinRealAverage(110); + this.Height = this.Parent != null ? this.Parent.Height : ControlCommonResourse.ListViewRowHeight; this.Gravity = Gravity.CenterVertical; var XX = Application.CurrentWidth - Application.GetMinRealAverage(i_width) - ControlCommonResourse.XXLeft; -- Gitblit v1.8.0