| | |
| | | //btnConfirm.IsSelected = false; |
| | | if (string.IsNullOrEmpty(editText.Text.Trim()) || list.Contains(editText.Text.Trim())) |
| | | { |
| | | if (titleId == StringId.ModifyMemberNickname) |
| | | { |
| | | return; |
| | | } |
| | | //if (titleId == StringId.ModifyMemberNickname) |
| | | //{ |
| | | // return; |
| | | //} |
| | | string tipMsgString = ""; |
| | | if (string.IsNullOrEmpty(editText.Text.Trim())) |
| | | { |
| | |
| | | //TextAlignment = TextAlignment.CenterLeft , |
| | | }; |
| | | editView.AddChidren(etParater); |
| | | |
| | | Button btnClear = new Button() |
| | | { |
| | | X = Application.GetRealWidth(218-25), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(24), |
| | | Height = Application.GetRealWidth(24), |
| | | UnSelectedImagePath = "Public/ClearIcon.png", |
| | | }; |
| | | editView.AddChidren(btnClear); |
| | | |
| | | btnClear.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | etParater.Text = ""; |
| | | }; |
| | | |
| | | etParater.TextChangeEventHandler = (sender, e) => |
| | | { |
| | |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = isWhite ? CSS_Color.FirstLevelTitleColor : CSS_Color.MainBackgroundColor, |
| | | Text = msg, |
| | | IsMoreLines = true, |
| | | }; |
| | | frame.AddChidren(btnTipMsg); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.Complete, |
| | | TextID = StringId.Confirm, |
| | | }; |
| | | topView.AddChidren(btnConfrim); |
| | | |