diff --git a/src/client/spark/view/Controls/DataGridEx/Filters/Views/TimeFilterControl.xaml.cs b/src/client/spark/view/Controls/DataGridEx/Filters/Views/TimeFilterControl.xaml.cs index 4b5199bf6..5fe4ecc5c 100644 --- a/src/client/spark/view/Controls/DataGridEx/Filters/Views/TimeFilterControl.xaml.cs +++ b/src/client/spark/view/Controls/DataGridEx/Filters/Views/TimeFilterControl.xaml.cs @@ -45,9 +45,9 @@ namespace mbts.ui.controls { var clear_begin_time = this.assert_template_child("ClearBeginLink"); var clear_end_time = this.assert_template_child("ClearEndLink"); var set_last_hour = this.assert_template_child("SetLastHourLink"); - clear_begin_time.Command = new DelegateCommand(() => Begin = default); - clear_end_time.Command = new DelegateCommand(() => End = default); - set_last_hour.Command = new DelegateCommand(() => Begin = TimeTextTuple.FromDateTime(DateTime.Now.AddHours(-1))); + clear_begin_time.Command = new DelegateCommand(() => SetCurrentValue(BeginProperty, default(TimeTextTuple))); + clear_end_time.Command = new DelegateCommand(() => SetCurrentValue(EndProperty, default(TimeTextTuple))); + set_last_hour.Command = new DelegateCommand(() => SetCurrentValue(BeginProperty, TimeTextTuple.FromDateTime(DateTime.Now.AddHours(-1)))); } class TimeFilterErrorAdorner : NotifyDataErrorAdorner, IDisposable {