When IsPassword property of the entry is changed dynamically in Xamarin Forms, it's not getting reflected in the Xamarin Mac app integrated with Xamarin Forms.
text in the password entry should be unmasked
Text in the entry is still masked
Even the vice versa is not working as expected
Note : This happens only in Mac ( iOS, Android and UWP are good with this )
I'm experiencing same issue, it only happens on Mac. I've tested it with WPF and GTK and works OK.
This is because this code is not implemented. Unfortunately, implementing this on macOS is non-trivial, because on Mac, the "password on" control (NSSecureTextField
) is a completely separate class from the "password off" control (NSTextField
). Implementing this in EntryRenderer
would require that it recreate its native control every time IsPassword
changes.
Although NSSecureTextField
supports removing the bullets (see -[NSSecureTextFieldCell echosBullets]
), using that to implement "password off" is a bad idea, because setting echosBullets
to false does not remove the other behaviors of NSSecureTextField
(such as the inability to copy out of it).
@rmarinho I've just added implementation of this issue for MacOS.