Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Last active December 5, 2017 01:33
Show Gist options
  • Save sjehutch/f4e1729f3a0fbaaeb8d8a27afcc3b1f5 to your computer and use it in GitHub Desktop.
Save sjehutch/f4e1729f3a0fbaaeb8d8a27afcc3b1f5 to your computer and use it in GitHub Desktop.
Show Hide Password Field xamarin IOS
bool showPassClick;
this.showPassClick = true;
partial void BtnShowPassword_TouchUpInside(UIButton sender)
{
if (showPassClick == true)
{
txtPassword.SecureTextEntry = false;
showPassClick = false;
btnShowPassword.SetTitle("Hide Password", UIControlState.Normal);
}
else
{
txtPassword.SecureTextEntry = true;
showPassClick = true;
btnShowPassword.SetTitle("Show Password", UIControlState.Normal);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment