This commit is contained in:
NaBian 2020-08-28 00:20:31 +08:00
parent 016fa4bdef
commit b698d30358

View File

@ -359,6 +359,15 @@ namespace HandyControl.Controls
} }
} }
private void TextBox_TextChanged(object sender, TextChangedEventArgs e) => VerifyData(); private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
VerifyData();
if (!IsSafeEnabled && ShowPassword)
{
Password = _textBox.Text;
SetCurrentValue(UnsafePasswordProperty, Password);
}
}
} }
} }