fixed#134 数据绑定失效

This commit is contained in:
noctwolf committed 2019-07-25 02:40:06 +08:00
1 parent 8b48310772
commit c500e9c1e6
6 files changed
+29 -29

No files matched your search

@@ -43,10 +43,10 @@ namespace HandyControl.Controls
{
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
{
ClearValue(SelectedValueProperty);
ClearValue(SelectedItemProperty);
ClearValue(SelectedIndexProperty);
ClearValue(TextProperty);
SetCurrentValue(SelectedValueProperty, null);
SetCurrentValue(SelectedItemProperty, null);
SetCurrentValue(SelectedIndexProperty, -1);
SetCurrentValue(TextProperty, "");
}));
}
@@ -85,7 +85,7 @@ namespace HandyControl.Controls
UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
Mode = BindingMode.OneWayToSource,
#if !netle40
Delay = 500,
Delay = 500,
#endif
Source = this
});