From cdde730fc52b4fa986d4d2961ce364ce3a11d04f Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 2 Nov 2018 13:59:27 -0500 Subject: [PATCH] TimeFilterControl - hyperlink commands should update props with SetCurrentValue (i.e. don't break bindings) --- .../DataGridEx/Filters/Views/TimeFilterControl.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {