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/BaseCommonControl/Base/TextInputBase.cs | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 50 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs index 86b3602..4c69fe1 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs @@ -9,6 +9,28 @@ /// </summary> public class TextInputBase : EditText { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 鑱斿姩搴曠嚎 + /// </summary> + private NormalViewControl btnLineTemp = null; + /// <summary> + /// 鑱斿姩搴曠嚎(鍊艰緭鍏ヤ箣鍚�,绾跨殑棰滆壊浼氬彉) + /// </summary> + public NormalViewControl btnLine + { + set + { + this.btnLineTemp = value; + //鍏夋爣浜嬩欢 + this.FoucsChanged -= this.TxtCode_FoucsChangedEvent; + this.FoucsChanged += this.TxtCode_FoucsChangedEvent; + } + } + + #endregion + #region 鈻� 鍒濆鍖朹____________________________ /// <summary> @@ -78,6 +100,33 @@ #endregion + #region 鈻� 浜嬩欢_______________________________ + + /// <summary> + /// 鐒︾偣鍙樻洿浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void TxtCode_FoucsChangedEvent(object sender, FocusEventArgs e) + { + if (e.Focus == false) + { + if (btnLineTemp != null) + { + btnLineTemp.BackgroundColor = UserCenterColor.Current.ButtomLine; + } + } + else + { + if (btnLineTemp != null) + { + btnLineTemp.BackgroundColor = UserCenterColor.Current.TextFrameSelectColor; + } + } + } + + #endregion + #region 鈻� 涓�鑸柟娉昣__________________________ /// <summary> @@ -92,7 +141,7 @@ return; } //Y杞撮噸缃� - this.Y = UserCenterLogic.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); + this.Y = HdlControlLogic.Current.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); } #endregion } -- Gitblit v1.8.0