Hi All,
I resolved this issue using following code, I have changed PasswordTextBox class TextMode property.
public Mode TextMode
{
get { return _TextMode; }
set { _TextMode = value; }
}
To
public Mode TextMode
{
get { return (Mode) GetValue(TextModeProperty); }
set { SetValue(TextModeProperty, value); }
}
public static readonly DependencyProperty TextModeProperty =
DependencyProperty.Register("TextMode", typeof(Mode), typeof(PasswordTextBox), new PropertyMetadata(default(Mode)));
Specially thanks to chopikadze for helping me to fix this.
http://stackoverflow.com/questions/9410431/error-in-binding-custom-textbox-property[
^]
Thanks all of you guys who searching and trying to help me.
Imdadhusen