From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 19 十一月 2020 10:23:45 +0800 Subject: [PATCH] Evoyo.Home1.1.0120111601_Release --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs index 8905b4b..86cc665 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs @@ -98,7 +98,7 @@ i_width = Application.GetRealWidth(i_width); } var contr = this.AddLeftCaption(i_caption, i_width, this.Height, false); - this.AddChidren(contr, ChidrenBindMode.BindEventOnly); + this.AddChidren(contr, ChidrenBindMode.BindEvent); if (chidrenYaxis != 0) { contr.Y += chidrenYaxis; @@ -173,13 +173,18 @@ /// 娣诲姞宸﹁竟鍥炬爣 /// </summary> /// <param name="i_Iconsize">鍥炬爣澶у皬</param> + /// <param name="i_IconPath">鍥炬爣鍦板潃</param> /// <returns></returns> - public IconViewControl AddLeftIcon(int i_Iconsize = 81) + public IconViewControl AddLeftIcon(int i_Iconsize = 81, string i_IconPath = null) { var btnIcon = new IconViewControl(i_Iconsize); btnIcon.X = ControlCommonResourse.XXLeft + LeftOffset; btnIcon.Gravity = Gravity.CenterVertical; - this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly); + if (i_IconPath != null) + { + btnIcon.UnSelectedImagePath = i_IconPath; + } + this.AddChidren(btnIcon, ChidrenBindMode.BindEvent); if (chidrenYaxis != 0) { btnIcon.Y += chidrenYaxis; @@ -202,7 +207,7 @@ btnRight.Gravity = Gravity.CenterVertical; btnRight.X =this.Width - btnRight.IconSize - ControlCommonResourse.XXLeft + RightOffset; btnRight.UnSelectedImagePath = "Item/RightNext.png"; - this.AddChidren(btnRight, ChidrenBindMode.BindEventOnly); + this.AddChidren(btnRight, ChidrenBindMode.BindEvent); if (chidrenYaxis != 0) { @@ -227,7 +232,7 @@ this.AddChidren(btnContr, ChidrenBindMode.NotBind); btnContr.InitControl(); //澶嶅悎鎺т欢闇�瑕佺壒娈婂鐞� - this.ChangedChidrenBindMode(btnContr, ChidrenBindMode.BindEventOnly); + this.ChangedChidrenBindMode(btnContr, ChidrenBindMode.BindEvent); if (RightOffset != 0) { btnContr.X += RightOffset; @@ -278,7 +283,7 @@ i_width = Application.GetRealWidth(i_width); } var btnContr = AddMostRightView(i_text, i_width, this.Height, false); - this.AddChidren(btnContr, ChidrenBindMode.BindEventOnly); + this.AddChidren(btnContr, ChidrenBindMode.BindEvent); if (chidrenYaxis != 0) { btnContr.Y += chidrenYaxis; @@ -333,7 +338,7 @@ contr.TextSize = 15; //褰撴寚瀹氬疄闄呭潗鏍囨椂,杩欓噷闇�瑕佺殑鍋忕Щ閲忎负2鍊� contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis * 2; - this.AddChidren(contr, ChidrenBindMode.BindEventOnly); + this.AddChidren(contr, ChidrenBindMode.BindEvent); return contr; } @@ -360,7 +365,7 @@ contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis * 2; contr.TextSize = 12; contr.TextColor = UserCenterColor.Current.TextGrayColor1; - this.AddChidren(contr, ChidrenBindMode.BindEventOnly); + this.AddChidren(contr, ChidrenBindMode.BindEvent); return contr; } -- Gitblit v1.8.0