예제 #1
0
        protected override void SetDefaultValidator()
        {
            AtomForm.SetValidator(this, DefaultValidator);

            this.IsPassword = true;

            this.MinimumLength = 5;
            this.MaximumLength = 16;
        }
        /// <summary>
        ///
        /// </summary>
        public AtomComboBox()
        {
            AtomForm.SetValidator(this, DefaultValidator);

            this.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = new AtomCommand(async() => await OnContentTappedCommand())
            });

            this.ItemTemplate = new DataTemplate(typeof(AtomLabelTemplate));

            this.Padding      = new Thickness(5);
            this.OutlineColor = Color.Accent;

            OnSelectedItemChanged(null, null);
        }
예제 #3
0
        /// <summary>
        ///
        /// </summary>
        public AtomDatePicker()
        {
            AtomForm.SetValidator(this, DefaultValidator);

            contentLabel = new Label {
            };
            contentLabel.VerticalTextAlignment = TextAlignment.Center;
            contentLabel.GestureRecognizers.Add(new TapGestureRecognizer {
                Command = new AtomCommand(async() => await OnTapCommandAsync())
            });

            Content = contentLabel;

            this.ControlTemplate = new ControlTemplate(typeof(AtomDatePickerTemplate));

            contentLabel.Text = EmptyLabel;
        }
 protected virtual void SetDefaultValidator()
 {
     AtomForm.SetValidator(this, DefaultValidator);
 }
 protected override void SetDefaultValidator()
 {
     AtomForm.SetValidator(this, DefaultValidator);
 }