Exemplo n.º 1
0
 public UITextFieldEventArgs(UITextFieldEventType type, bool hasFocus, string initialText, string currentText)
     : base()
 {
     this.EventType   = type;
     this.HasFocus    = hasFocus;
     this.InitialText = initialText;
     this.CurrentText = currentText;
 }
Exemplo n.º 2
0
        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();
                }
            }
        }