PasswordBoxExtend Class
Extends PasswordBox with 2 attached properties that allows binding of the password.
Namespace: Common.Wpf.ControlsAssembly: Common.Wpf.Controls (in Common.Wpf.Controls.dll) Version: 2.0.7
public static class PasswordBoxExtend
- Inheritance
- Object PasswordBoxExtend
1. Add a namespace attribute to the root element of the markup file it is to be used in:
xmlns:cc="clr-namespace:Common.Wpf.Controls;assembly=Common.Wpf.Controls"
2. Define the PasswordBox control specifying to bind the password:
<PasswordBox cc:PasswordBoxExtend.BindPassword="True"... >
<cc:PasswordBoxExtend.BoundPassword>
<Binding Path="Password" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"/>
</cc:PasswordBoxExtend.BoundPassword>
</PasswordBox>