public UITextFieldEventArgs(UITextFieldEventType type, bool hasFocus, string initialText, string currentText) : base() { this.EventType = type; this.HasFocus = hasFocus; this.InitialText = initialText; this.CurrentText = currentText; }
protected virtual void OnTextFieldEvent(UITextFieldEventType eventType) { if (_TextFieldEvent != null) { _TextFieldEvent(this, new UITextFieldEventArgs(eventType, this.HasFocus, this.InitialText, this.Text)); } if (this.ClearButton != null) { if (this.Text.Length > 0) { this.ClearButton.Show(); } else { this.ClearButton.Hide(); } } }