Xamarin Community Toolkit UriValidationBehavior
The UriValidationBehavior is a behavior that allows users to determine whether or not text input is a valid URI. For example, an Entry
control can be styled differently depending on whether a valid or an invalid URI is provided. Additional properties handling validation are inherited from ValidationBehavior.
Syntax
<Entry>
<Entry.Behaviors>
<xct:UriValidationBehavior
UriKind="Absolute"
InvalidStyle="{StaticResource InvalidEntryStyle}"
/>
</Entry.Behaviors>
</Entry>
Properties
Property | Type | Description |
---|---|---|
UriKind | UriKind | Provides an enumerated value that specifies how to handle different URI types. |
Sample
You can see this in action in the Xamarin Community Toolkit Sample App.