Op Englesch liesen

Deelen iwwer


MaxLengthReachedBehavior Class

Definition

The MaxLengthReachedBehavior is a behavior that allows the user to trigger an action when a user has reached the maximum length allowed on an InputView. It can either trigger a System.Windows.Input.ICommand or an event depending on the user's preferred scenario.

C#
public class MaxLengthReachedBehavior : Xamarin.CommunityToolkit.Behaviors.Internals.BaseBehavior<Xamarin.Forms.InputView>
Inheritance
Behavior<TView>
MaxLengthReachedBehavior

Constructors

Fields

CommandProperty

Backing BindableProperty for the Command property.

ShouldDismissKeyboardAutomaticallyProperty

Backing BindableProperty for the ShouldDismissKeyboardAutomatically property.

Properties

Command

Command that is triggered when the value configured in MaxLength is reached. Both the MaxLengthReached event and this command are triggered. This is a bindable property.

ShouldDismissKeyboardAutomatically

Indicates whether or not the keyboard should be dismissed automatically after the maximum length is reached. This is a bindable property.

View (Inherited from BaseBehavior<TView>)

Methods

Events

MaxLengthReached

Event that is triggered when the value configured in MaxLength is reached. Both the Command and this event are triggered. This is a bindable property.

Applies to

Produkt Versiounen
Xamarin Community Toolkit Latest