A functionality for showing the password when clicked on a button like facebook??

Is this even possible.
An icon(button) near the password label which shows the password when clicked.
Would love if someone can provide a solution or any suggestions for this.

Best Answer

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭
    edited May 2017

    IsPassword is a property of the Entry.
    Have you tried toggling that bool from true to false ?

  • thewannabedeveloperthewannabedeveloper INMember ✭✭

    @ClintStLaurent Thanks for your reply. But that's not what I'm looking for.
    I'm looking for an icon at the end of the password label, so when I click and hold on it, it shows the text I entered.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    use a horizontal stacklayout with an Entry and an Image. Attach a TapGestureRecognizer to the Image and on Tapped event do what @ClintStLaurent say.

  • Gigex42Gigex42 USMember ✭✭✭✭

    You can also write this to invert the IsPassword property :smile:

    Password.IsPassword = !Password.IsPassword;

  • ferlealferleal Member ✭✭

    thank you thewannabedeveloper!

Sign In or Register to comment.