From c0021397eeb8335d6d1f20990c71533c3d94e7af Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 10 一月 2020 17:02:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into DEV_GXC --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs index 6b26088..02e26e4 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs @@ -64,7 +64,7 @@ frameCode.X = i * Application.GetRealWidth(115 + 49); frameCode.Width = Application.GetRealWidth(115); frameCode.Height = Application.GetRealHeight(104); - frameCode.Radius = 6; + frameCode.Radius = (uint)Application.GetRealHeight(17); frameCode.BorderWidth = 1; frameCode.BorderColor = UserCenterColor.Current.TextFrameColor; this.AddChidren(frameCode); @@ -84,6 +84,8 @@ txtCode.FoucsChanged += this.TxtCode_FoucsChangedEvent; //鍊兼敼鍙樹簨浠� txtCode.TextChangeEventHandler += this.TxtCode_TextChangeEvent; + //閿洏浜嬩欢 + txtCode.KeyEventAction += this.TxtCode_KeyEvent; } } @@ -172,6 +174,26 @@ } } + /// <summary> + /// 閿洏浜嬩欢 + /// </summary> + /// <param name="keysCode"></param> + private void TxtCode_KeyEvent(object sender, string keysCode) + { + if (keysCode == "Del") + { + var txtCode = (TextInputControl)sender; + if (txtCode.Text == string.Empty) + { + int index = Convert.ToInt32(txtCode.Name); + if (dicCodeControls.ContainsKey(index - 1) == true) + { + dicCodeControls[index - 1].Foucs = true; + } + } + } + } + #endregion #region 鈻� 涓�鑸柟娉昣__________________________ -- Gitblit v1.8.0