Last active
December 5, 2017 01:33
-
-
Save sjehutch/f4e1729f3a0fbaaeb8d8a27afcc3b1f5 to your computer and use it in GitHub Desktop.
Show Hide Password Field xamarin IOS
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
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