MaxLengthReachedBehavior 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 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.
public class MaxLengthReachedBehavior : Xamarin.CommunityToolkit.Behaviors.Internals.BaseBehavior<Xamarin.Forms.InputView>
- Inheritance
Command |
Backing BindableProperty for the Command property. |
Should |
Backing BindableProperty for the ShouldDismissKeyboardAutomatically property. |
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. |
Should |
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>) |
Is |
(Inherited from BaseBehavior<TView>) |
On |
(Inherited from BaseBehavior<TView>) |
On |
(Inherited from BaseBehavior<TView>) |
On |
Max |
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. |
Produkt | Versiounen |
---|---|
Xamarin Community Toolkit | Latest |