Пример #1
0
 public TextFieldDelegate(KeyboardInputView owner)
 {
     if (owner == null)
     {
         throw new ArgumentNullException("owner");
     }
     _owner = owner;
 }
        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 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));
		}
Пример #4
0
			public TextFieldDelegate (KeyboardInputView owner)
			{
				if (owner == null)
					throw new ArgumentNullException ("owner");
				_owner = owner;
			}