From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 二月 2020 13:08:47 +0800 Subject: [PATCH] 先上传个版本吧 --- 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 02e26e4..3c44056 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs @@ -20,9 +20,13 @@ /// </summary> public Action<string> FinishInputEvent = null; /// <summary> - /// 瀵嗙爜杈撳叆绫诲瀷 + /// 瀵嗙爜杈撳叆绫诲瀷(瀹冧笌NumberInputOnly涓嶅叡瀛�) /// </summary> public bool SecureTextEntry = false; + /// <summary> + /// 杈撳叆閿洏鎸囧畾涓烘暟瀛楅敭鐩�(榛樿涓簍rue,瀹冧笌SecureTextEntry涓嶅叡瀛�) + /// </summary> + public bool NumberInputOnly = true; /// <summary> /// 楠岃瘉鐮侀暱搴� /// </summary> @@ -74,6 +78,10 @@ { txtCode.SecureTextEntry = true; } + else if (NumberInputOnly == true) + { + txtCode.IsNumberKeyboardType = true; + } txtCode.Name = i.ToString(); txtCode.TextAlignment = TextAlignment.Center; frameCode.AddChidren(txtCode); -- Gitblit v1.8.0