Created
August 1, 2018 13:09
-
-
Save DamianSuess/1f053440d98d485cb3e2eab8fd9088ab to your computer and use it in GitHub Desktop.
Xamarin.Forms - Password hide/show
This file contains 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
<Entry x:Name="Email" Placeholder="Email" TextColor="Black" Grid.Row="1" Grid.Column="1"></Entry> | |
<StackLayout Grid.Row="2" Grid.Column="1"> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<Entry IsPassword="True" x:Name="Password" TextColor="Black" Placeholder="Password" Grid.Column="0" Grid.ColumnSpan="2" /> | |
<Image Source="eye32.png" HorizontalOptions="End" VerticalOptions="Center" Grid.Column="1"> | |
<Image.GestureRecognizers> | |
<TapGestureRecognizer Tapped="ShowPass" NumberOfTapsRequired="1" /> | |
</Image.GestureRecognizers> | |
</Image> | |
</Grid> | |
</StackLayout> |
Very easy of all the ones I have seen. Thank yoy
I spent 2 days looking for something like this, and in 5 minutes I did it. Thank you
Happy to help @SamuelJoseBolanoMejia. It's good to know these are useful and to keep creating snips
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dev-khurramshahzad Happy to be of assistance, you're welcome.