This commit is contained in:
NaBian committed 2023-06-03 17:34:20 +08:00
1 parent 8d900ecbc6
commit 0d0a5028d1
1 file changed
+5
@@ -9,6 +9,11 @@ public class TextBox : System.Windows.Controls.TextBox
{
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
{
if (IsReadOnly)
{
return;
}
SetCurrentValue(TextProperty, string.Empty);
}));
}