public ValidatableNumericEntry( double?entryFontSize, string stringFormat, INumericEntryValidationBehavior validator, Keyboard keyboard = default, bool asleepInitially = false ) : base(entryFontSize: entryFontSize, keyboard: keyboard, asleepInitially: asleepInitially) { _validator = validator; Converter = new StringToNumericConverter { StringFormat = stringFormat, ValidationType = validator.IsNotNullOrDefault() ? validator.ValidationType : ValidationTypes.DecimalNumber }; if (!IsConstructing) { RecreateAllViewsBindingsAndStyles(); } }
public ValidatableCheckBox( ICanBeValid validator = default, Action onIsValidChangedAction = default, bool asleepInitially = false ) : base ( CustomCheckBox.IsCheckedProperty, validator ?? new ViewValidationBehavior ( view => view is IValidatableCheckBox viewAsValidatableCheckBox &&
protected ValidatableViewBase(BindableProperty boundProp, ICanBeValid validator = default, bool asleepInitially = false) { this.SetDefaults(); BoundProperty = boundProp; Validator = validator; BackgroundColor = Color.Transparent; ColumnSpacing = 0; RowSpacing = 0; IsConstructing = asleepInitially; }
public ValidatableDateTime ( bool emptyAllowed = false, double?fontSize = null, Action onIsValidChangedAction = null, bool returnNonNullableResult = false, ICanBeValid validator = null, bool asleepInitially = false ) : base ( returnNonNullableResult ? DatePicker.DateProperty : NullableResultProperty, validator ?? new ViewValidationBehavior ( view => view is IValidatableDateTime viewAsValidatableDateTime
public ValidatablePicker ( IList items, bool emptyAllowed = false, double?fontSize = null, Action onIsValidChangedAction = null, ICanBeValid validator = null, bool isNumeric = false, bool asleepInitially = false ) : base ( Picker.SelectedItemProperty, validator ?? new ViewValidationBehavior ( view => view is IValidatablePicker viewAsValidatablePicker