From 6fa9d69da922c8049f5acfcbb9ce9fd26811024c Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 16 四月 2020 17:10:57 +0800 Subject: [PATCH] 请合并代码 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs index fc04e27..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 @@ -53,8 +57,13 @@ /// <para>娣诲姞搴曠嚎(濡傛灉宸﹁竟鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞搴曠嚎)</para> /// <para>瀹冪殑闀垮害涓猴細褰撳墠鎺т欢瀹藉害-宸﹀彸鍥哄畾闂磋窛-宸﹁竟鍥剧墖瀹藉害(濡傛灉鏈�)-鍙宠竟鐨勫亸绉婚噺</para> /// </summary> - public NormalViewControl AddBottomLine() + 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