ValidationBehavior Class

Definition

The ValidationBehavior allows users to create custom validation behaviors. All of the validation behaviors in the Xamarin Community Toolkit inherit from this behavior, to expose a number of shared properties. Users can inherit from this class to create a custom validation behavior currently not supported through the Xamarin Community Toolkit. This behavios cannot be used directly as it's abstract.

C#‎
public abstract class ValidationBehavior : Xamarin.CommunityToolkit.Behaviors.Internals.BaseBehavior<Xamarin.Forms.VisualElement>
Inheritance
Behavior<TView>
ValidationBehavior
Derived

Constructors

Fields

FlagsProperty

Backing BindableProperty for the Flags property.

ForceValidateCommandProperty

Backing BindableProperty for the ForceValidateCommand property.

InvalidStyleProperty

Backing BindableProperty for the InvalidStyle property.

InvalidVisualState
IsNotValidProperty

Backing BindableProperty for the IsNotValid property.

IsRunningProperty

Backing BindableProperty for the IsRunning property.

IsValidProperty

Backing BindableProperty for the IsValid property.

ValidStyleProperty

Backing BindableProperty for the ValidStyle property.

ValidVisualState
ValueProperty

Backing BindableProperty for the Value property.

ValuePropertyNameProperty

Backing BindableProperty for the ValuePropertyName property.

Properties

DefaultForceValidateCommand
DefaultValuePropertyName
Flags

Provides an enumerated value that specifies how to handle validation. This is a bindable property.

ForceValidateCommand

Allows the user to provide a custom System.Windows.Input.ICommand that handles forcing validation. This is a bindable property.

InvalidStyle

The Style to apply to the element when validation fails. This is a bindable property.

IsNotValid

Indicates whether or not the current value is considered not valid. This is a bindable property.

IsRunning

Indicates whether or not the validation is in progress now (waiting for an asynchronous call is finished).

IsValid

Indicates whether or not the current value is considered valid. This is a bindable property.

ValidStyle

The Style to apply to the element when validation is successful. This is a bindable property.

Value

The value to validate. This is a bindable property.

ValuePropertyName

Allows the user to override the property that will be used as the value to validate. This is a bindable property.

View (Inherited from BaseBehavior<TView>)

Methods

Applies to

מוצר גירסאות
Xamarin Community Toolkit Latest