Hi!
I am developing a LoginPage with a password field that contains an input component. (Let's call PwdEntry)
My PwdEntry has the IsPassword property set to True in xaml and I have changed the FontFamily property to a FontAwesome adaptation by placing an icon in conjunction with a text.
When I change the IsPassword Property in the code-behind of my Page, it seems that the Font is changed and I lose my icon.
Has anyone had this problem? If so, could you help me?
Therefore, the steps to reproduce this problem are:
1 - Create a ContentPage;
*2 - You may need to use the code to include FontAwesome in your components. (https://www.wintellect.com/using-fontawesome5-xamarin-forms/)
3 - Define an Entry in Xaml with IsPassword = True Property
4 - Create a Button (its functionality is to display the password or hide)
5 - Add an EventHandler to the Pressed and another to the Released.
6 - In the EventHandler_Pressed property, change the IsPassword property to True. (entryPassword.IsPassword = true;)
7 - In the EventHandler_Released, change the Property IsPassword to False. (entryPassword.IsPassword = false;)
Attachments:
Before Pressed Event Fired (set IsPassword to false)
After Pressed and Released Event Fired (set IsPassword to true)
Pressed Event Fired (set IsPassword to true)