Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Ispassword property change triggers second time not first time.

$
0
0

Hi Team,

I have implemented the password hide/show using following code. It works on second click of the stack not first click.

private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
{
if (PasswordHide.IsVisible)
{
entryPassword.IsPassword = false;
PasswordHide.IsVisible = false;
PasswordShow.IsVisible = true;
}
else if (PasswordShow.IsVisible)
{
entryPassword.IsPassword = true;
PasswordHide.IsVisible = true;
PasswordShow.IsVisible = false;
}
}

Any help?

Thanks in advance.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>