Skip to content

Instantly share code, notes, and snippets.

@LucioD3v
Created July 31, 2020 23:15
Show Gist options
  • Save LucioD3v/51224109bbfe06752861825f291bc836 to your computer and use it in GitHub Desktop.
Save LucioD3v/51224109bbfe06752861825f291bc836 to your computer and use it in GitHub Desktop.
XAML PasswordValidationBehavior
<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