ValidationBehavior Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public abstract class ValidationBehavior : Xamarin.CommunityToolkit.Behaviors.Internals.BaseBehavior<Xamarin.Forms.VisualElement>
- Inheritance
- Derived
Flags |
Backing BindableProperty for the Flags property. |
Force |
Backing BindableProperty for the ForceValidateCommand property. |
Invalid |
Backing BindableProperty for the InvalidStyle property. |
Invalid |
|
Is |
Backing BindableProperty for the IsNotValid property. |
Is |
Backing BindableProperty for the IsRunning property. |
Is |
Backing BindableProperty for the IsValid property. |
Valid |
Backing BindableProperty for the ValidStyle property. |
Valid |
|
Value |
Backing BindableProperty for the Value property. |
Value |
Backing BindableProperty for the ValuePropertyName property. |
Default |
|
Default |
|
Flags |
Provides an enumerated value that specifies how to handle validation. This is a bindable property. |
Force |
Allows the user to provide a custom System.Windows.Input.ICommand that handles forcing validation. This is a bindable property. |
Invalid |
The Style to apply to the element when validation fails. This is a bindable property. |
Is |
Indicates whether or not the current value is considered not valid. This is a bindable property. |
Is |
Indicates whether or not the validation is in progress now (waiting for an asynchronous call is finished). |
Is |
Indicates whether or not the current value is considered valid. This is a bindable property. |
Valid |
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. |
Value |
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>) |
Decorate(Object) | |
Force |
Forces the behavior to make a validation pass. |
Is |
(Inherited from BaseBehavior<TView>) |
On |
(Inherited from BaseBehavior<TView>) |
On |
|
On |
(Inherited from BaseBehavior<TView>) |
On |
|
On |
|
On |
|
Validate |
מוצר | גירסאות |
---|---|
Xamarin Community Toolkit | Latest |