Op Englesch liesen

Deelen iwwer


EmailValidationBehavior Class

Definition

The EmailValidationBehavior is a behavior that allows users to determine whether or not text input is a valid e-mail address. For example, an Entry control can be styled differently depending on whether a valid or an invalid e-mail address is provided. The validation is achieved through a regular expression that is used to verify whether or not the text input is a valid e-mail address. It can be overridden to customize the validation through the properties it inherits from ValidationBehavior.

C#
public class EmailValidationBehavior : Xamarin.CommunityToolkit.Behaviors.TextValidationBehavior
Inheritance

Constructors

Fields

Properties

DecorationFlags

Provides enumerated value to use to set how to handle white spaces. This is a bindable property.

(Inherited from TextValidationBehavior)
DefaultForceValidateCommand (Inherited from ValidationBehavior)
DefaultRegexOptions
DefaultRegexPattern
DefaultValuePropertyName (Inherited from ValidationBehavior)
Flags

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

(Inherited from ValidationBehavior)
ForceValidateCommand

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

(Inherited from ValidationBehavior)
InvalidStyle

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

(Inherited from ValidationBehavior)
IsNotValid

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

(Inherited from ValidationBehavior)
IsRunning

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

(Inherited from ValidationBehavior)
IsValid

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

(Inherited from ValidationBehavior)
MaximumLength

The maximum length of the value that will be allowed. This is a bindable property.

(Inherited from TextValidationBehavior)
MinimumLength

The minimum length of the value that will be allowed. This is a bindable property.

(Inherited from TextValidationBehavior)
RegexOptions

Provides enumerated values to use to set regular expression options. This is a bindable property.

(Inherited from TextValidationBehavior)
RegexPattern

The regular expression pattern which the value will have to match before it will be allowed. This is a bindable property.

(Inherited from TextValidationBehavior)
ValidStyle

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

(Inherited from ValidationBehavior)
Value

The value to validate. This is a bindable property.

(Inherited from ValidationBehavior)
ValuePropertyName

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

(Inherited from ValidationBehavior)
View (Inherited from BaseBehavior<TView>)

Methods

Applies to

Produkt Versiounen
Xamarin Community Toolkit Latest