I have wrapped the default PasswordBox with my own PasswordBox code in order to be able to databind the SecurePassword property as it does not have a dependency property on the default PasswordBox.
Everything is going well except one thing, when I type text in the password box, the binding does not work and the password is not set in my ViewModel. I can see when my panel loads that the Password is being retrieved from my ViewModel, and I can also see
that my PasswordBox's SecurePassword property setter is being called when I type in the password (so it calls SetValue(SecurePasswordProperty, value), etc.), it just does not make it to the ViewModel at this point.
Any idea why this is working reading from the bound property but not writing to it?
Here is my PasswordBox code:
#region class PasswordBox
/// Wraps the default <see cref="System.Windows.Controls.PasswordBox">PasswordBox</see> control
/// to make the <see cref="SecurePassword">SecurePassword</see> property bindable.
public partial class PasswordBox : UserControl
#region Dependency Properties
public static readonly DependencyProperty SecureP
View Complete Post