黄学彪
2019-11-04 c7698e163e43cea9e7f8ee45f8e3f91c9265cca4
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);