Skip to content

Commit b698d30

Browse files
committed
fixed #460
1 parent 016fa4b commit b698d30

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/Shared/HandyControl_Shared/Controls/Input/PasswordBox.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,15 @@ private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
359359
}
360360
}
361361

362-
private void TextBox_TextChanged(object sender, TextChangedEventArgs e) => VerifyData();
362+
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
363+
{
364+
VerifyData();
365+
366+
if (!IsSafeEnabled && ShowPassword)
367+
{
368+
Password = _textBox.Text;
369+
SetCurrentValue(UnsafePasswordProperty, Password);
370+
}
371+
}
363372
}
364373
}

0 commit comments

Comments
 (0)