From b800fbdf874cdc75ddc137ea2c22ac2c25d8b45c Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期二, 26 十一月 2019 10:10:37 +0800 Subject: [PATCH] 2019.11.26 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs | 10 +++++++++- 1 files changed, 9 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 5e041ad..6b26088 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs @@ -20,6 +20,10 @@ /// </summary> public Action<string> FinishInputEvent = null; /// <summary> + /// 瀵嗙爜杈撳叆绫诲瀷 + /// </summary> + public bool SecureTextEntry = false; + /// <summary> /// 楠岃瘉鐮侀暱搴� /// </summary> private int CodeLenth = 0; @@ -60,12 +64,16 @@ frameCode.X = i * Application.GetRealWidth(115 + 49); frameCode.Width = Application.GetRealWidth(115); frameCode.Height = Application.GetRealHeight(104); - frameCode.Radius = (uint)Application.GetMinRealAverage(6); + frameCode.Radius = 6; frameCode.BorderWidth = 1; frameCode.BorderColor = UserCenterColor.Current.TextFrameColor; this.AddChidren(frameCode); var txtCode = new TextInputControl(frameCode.Width, frameCode.Height, false); + if (SecureTextEntry == true) + { + txtCode.SecureTextEntry = true; + } txtCode.Name = i.ToString(); txtCode.TextAlignment = TextAlignment.Center; frameCode.AddChidren(txtCode); -- Gitblit v1.8.0