Beispiel #1
0
        public PasswordBoxHandler()
        {
            Control = new EtoTextField
            {
                Handler    = this,
                Bezeled    = true,
                Editable   = true,
                Selectable = true,
                Formatter  = new EtoFormatter {
                    Handler = this
                }
            };

            Control.Cell.Scrollable         = true;
            Control.Cell.Wraps              = false;
            Control.Cell.UsesSingleLineMode = true;

            MaxLength = -1;
        }
Beispiel #2
0
            public EtoNumericUpDownView(NumericUpDownHandler handler)
            {
                AutoresizesSubviews = false;
                TextField           = new EtoTextField
                {
                    WeakHandler = new WeakReference(handler),
                    Bezeled     = true,
                    Editable    = true,
                    Formatter   = DefaultFormatter
                };
                TextField.Changed += HandleTextChanged;

                Stepper               = new EtoStepper();
                Stepper.Activated    += HandleStepperActivated;
                Stepper.MinValue      = double.NegativeInfinity;
                Stepper.MaxValue      = double.PositiveInfinity;
                TextField.DoubleValue = Stepper.DoubleValue = 0;

                AddSubview(TextField);
                AddSubview(Stepper);
            }