From 23532fa8ad34c89b6d24b01eaef6475fd0aad898 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 15 四月 2020 18:08:24 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs index 60c5d60..bb6104d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs @@ -30,6 +30,10 @@ /// 鍙宠竟鍥炬爣鎺т欢鐨勫ぇ灏� /// </summary> private int rightIconSize = 0; + /// <summary> + /// 搴曠嚎鎺т欢 + /// </summary> + private NormalViewControl btnBottomLine = null; #endregion @@ -55,6 +59,11 @@ /// </summary> public virtual NormalViewControl AddBottomLine() { + if (this.btnBottomLine != null) + { + //宸茬粡娣诲姞浜嗗簳绾� + return btnBottomLine; + } int lineWidth = this.Width - ControlCommonResourse.XXLeft * 2 - LeftOffset - RightOffset; int XX = ControlCommonResourse.XXLeft + LeftOffset; if (leftIconSize > 0) @@ -62,13 +71,13 @@ lineWidth = lineWidth - leftIconSize - Application.GetRealWidth(35); XX = XX + leftIconSize + Application.GetRealWidth(35); } - var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); - btnLine.X = XX; - btnLine.Y = this.Height - ControlCommonResourse.BottomLineHeight; - btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine; - base.AddChidren(btnLine); + this.btnBottomLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); + btnBottomLine.X = XX; + btnBottomLine.Y = this.Height - ControlCommonResourse.BottomLineHeight; + btnBottomLine.BackgroundColor = UserCenterColor.Current.ButtomLine; + base.AddChidren(btnBottomLine); - return btnLine; + return btnBottomLine; } #endregion -- Gitblit v1.8.0