Created
July 31, 2020 23:15
-
-
Save LucioD3v/51224109bbfe06752861825f291bc836 to your computer and use it in GitHub Desktop.
XAML PasswordValidationBehavior
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackLayout Padding="{StaticResource ContentPadding}" | |
Spacing="50" | |
VerticalOptions="CenterAndExpand"> | |
<Label Text="Text color will change accordingly to the style that is configured when a invalid value (password) is entered. Password rule should contain at least 8 characters, 1 numeric, 1 lowercase, 1 uppercase, 1 special character [eg: R3dDr@g0n]." /> | |
<Entry IsPassword="True" Placeholder="Password"> | |
<Entry.Behaviors> | |
<behaviors:PasswordValidationBehavior InvalidStyle="{StaticResource InvalidEntryStyle}"/> | |
</Entry.Behaviors> | |
</Entry> | |
</StackLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment