fixed#134 数据绑定失效
This commit is contained in:
1 parent
8b48310772
commit
c500e9c1e6
6 files changed
+12
-12
No files matched your search
@@ -43,10 +43,10 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||||
{
|
{
|
||||||
ClearValue(SelectedValueProperty);
|
SetCurrentValue(SelectedValueProperty, null);
|
||||||
ClearValue(SelectedItemProperty);
|
SetCurrentValue(SelectedItemProperty, null);
|
||||||
ClearValue(SelectedIndexProperty);
|
SetCurrentValue(SelectedIndexProperty, -1);
|
||||||
ClearValue(TextProperty);
|
SetCurrentValue(TextProperty, "");
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||||
{
|
{
|
||||||
ClearValue(SelectedDateProperty);
|
SetCurrentValue(SelectedDateProperty, null);
|
||||||
ClearValue(TextProperty);
|
SetCurrentValue(TextProperty, "");
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ namespace HandyControl.Controls
|
|||||||
InitCalendarWithClock();
|
InitCalendarWithClock();
|
||||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||||
{
|
{
|
||||||
ClearValue(SelectedDateTimeProperty);
|
SetCurrentValue(SelectedDateTimeProperty, null);
|
||||||
ClearValue(TextProperty);
|
SetCurrentValue(TextProperty, "");
|
||||||
_textBox.Text = string.Empty;
|
_textBox.Text = string.Empty;
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace HandyControl.Controls
|
|||||||
}));
|
}));
|
||||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||||
{
|
{
|
||||||
ClearValue(ValueProperty);
|
SetCurrentValue(ValueProperty, 0d);
|
||||||
_textBox.Text = string.Empty;
|
_textBox.Text = string.Empty;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||||
{
|
{
|
||||||
ClearValue(TextProperty);
|
SetCurrentValue(TextProperty, "");
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ namespace HandyControl.Controls
|
|||||||
Clock = new Clock();
|
Clock = new Clock();
|
||||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||||
{
|
{
|
||||||
ClearValue(SelectedTimeProperty);
|
SetCurrentValue(SelectedTimeProperty, null);
|
||||||
ClearValue(TextProperty);
|
SetCurrentValue(TextProperty, "");
|
||||||
_textBox.Text = string.Empty;
|
_textBox.Text = string.Empty;
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user