Exemplo n.º 1
0
 public TextFieldDelegate(KeyboardInputView owner)
 {
     if (owner == null)
     {
         throw new ArgumentNullException("owner");
     }
     _owner = owner;
 }
Exemplo n.º 2
0
            public override void LoadView()
            {
                var view = new KeyboardInputView(new RectangleF(0, 0, 240, 320));
                view.Title = _titleText;
                view.Description = _descriptionText;
                view.Text = _defaultText;
                view.UsePasswordMode = _usePasswordMode;

                view.ActivateFirstField();

                base.View = view;

                _keyboardObservers.Add(
                    NSNotificationCenter.DefaultCenter.AddObserver(
                        UIKeyboard.DidShowNotification, Keyboard_DidShow));
                _keyboardObservers.Add(
                    NSNotificationCenter.DefaultCenter.AddObserver(
                        UIKeyboard.WillHideNotification, Keyboard_WillHide));
            }
Exemplo n.º 3
0
            public override void LoadView()
            {
                var view = new KeyboardInputView(new RectangleF(0, 0, 240, 320));

                view.Title           = _titleText;
                view.Description     = _descriptionText;
                view.Text            = _defaultText;
                view.UsePasswordMode = _usePasswordMode;

                view.ActivateFirstField();

                base.View = view;

                _keyboardObservers.Add(
                    NSNotificationCenter.DefaultCenter.AddObserver(
                        UIKeyboard.DidShowNotification, Keyboard_DidShow));
                _keyboardObservers.Add(
                    NSNotificationCenter.DefaultCenter.AddObserver(
                        UIKeyboard.WillHideNotification, Keyboard_WillHide));
            }
 public TextFieldDelegate (KeyboardInputView owner)
 {
     if (owner == null)
         throw new ArgumentNullException ("owner");
     _owner = owner;
 }