From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期一, 14 十二月 2020 09:59:01 +0800 Subject: [PATCH] 请合并代码,完成晾衣架最终功能。 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs index e887519..1ee238d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs @@ -131,6 +131,9 @@ // } //} txtCode.Parent.BorderColor = UserCenterColor.Current.TextFrameSelectColor; +#if Android + txtCode.SetSelectionEnd(); +#endif } else { @@ -155,6 +158,10 @@ if (textValue.Length == this.CodeLenth) { dicCodeControls[this.CodeLenth - 1].Foucs = true; +#if Android + //鍏夋爣鑷充簬鏈�鍚� + dicCodeControls[this.CodeLenth - 1].SetSelectionEnd(); +#endif for (int i = 0; i < this.CodeLenth; i++) { //鍏堢Щ闄や簨浠� @@ -183,9 +190,17 @@ if (dicCodeControls.ContainsKey(index + 1) == true) { dicCodeControls[index + 1].Foucs = true; +#if Android + //鍏夋爣鑷充簬鏈�鍚� + dicCodeControls[index + 1].SetSelectionEnd(); +#endif } else { +#if Android + //鍏夋爣鑷充簬鏈�鍚� + txtCode.SetSelectionEnd(); +#endif //鏈�鍚庝竴浣嶈緭鍏ュ畬鎴�,鏍¢獙楠岃瘉鐮� string code = string.Empty; for (int i = 0; i < this.CodeLenth; i++) @@ -212,6 +227,10 @@ if (dicCodeControls.ContainsKey(index - 1) == true) { dicCodeControls[index - 1].Foucs = true; +#if Android + //鍏夋爣鑷充簬鏈�鍚� + dicCodeControls[index - 1].SetSelectionEnd(); +#endif } } } -- Gitblit v1.8.0