From 7fcd969a203066a5038c293a755ca8b0818bc240 Mon Sep 17 00:00:00 2001 From: Jayanthi Sourirajan <88632084+soujay@users.noreply.github.com> Date: Thu, 4 Jan 2024 14:52:52 -0800 Subject: [PATCH 1/5] enable three state attribute in checkbox --- .../UI/InstanceAdd/ServiceControlAddView.xaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml index 31710bbb98..59b3f9c606 100644 --- a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml +++ b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml @@ -78,7 +78,7 @@ Foreground="{StaticResource ErrorBrush}" Text="Must select either an audit or an error instance." /> - + @@ -240,7 +240,7 @@ - + Date: Fri, 5 Jan 2024 15:46:53 -0800 Subject: [PATCH 2/5] Add keydownevent to handle indeterminate state --- .../UI/InstanceAdd/ServiceControlAddView.xaml | 4 ++-- .../UI/InstanceAdd/ServiceControlAddView.xaml.cs | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml index 59b3f9c606..9dd73d4960 100644 --- a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml +++ b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml @@ -78,7 +78,7 @@ Foreground="{StaticResource ErrorBrush}" Text="Must select either an audit or an error instance." /> - + @@ -240,7 +240,7 @@ - + chk.IsChecked = false; + } + public void CheckBoxAudit_Indeterminate(object sender, RoutedEventArgs e) + { + var chk = sender as CheckBox; + chk.Indeterminate += (sender, e) => chk.IsChecked = false; + } } } \ No newline at end of file From ece93bed8fdceecf034bfac83cb6bc6818463e07 Mon Sep 17 00:00:00 2001 From: Jayanthi Sourirajan <88632084+soujay@users.noreply.github.com> Date: Fri, 5 Jan 2024 20:44:23 -0800 Subject: [PATCH 3/5] handle the checked event --- .../UI/InstanceAdd/ServiceControlAddView.xaml | 4 ++-- .../UI/InstanceAdd/ServiceControlAddView.xaml.cs | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml index 9dd73d4960..83dd08cf2b 100644 --- a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml +++ b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml @@ -78,7 +78,7 @@ Foreground="{StaticResource ErrorBrush}" Text="Must select either an audit or an error instance." /> - + @@ -240,7 +240,7 @@ - + chk.IsChecked = false; + CheckBox_Indeterminate(sender, e); } public void CheckBoxAudit_Indeterminate(object sender, RoutedEventArgs e) + { + CheckBox_Indeterminate(sender, e); + } + public void CheckBox_Indeterminate(object sender, RoutedEventArgs e) { var chk = sender as CheckBox; chk.Indeterminate += (sender, e) => chk.IsChecked = false; From 3bd3012423e2a251ae02de3db475275f78339739 Mon Sep 17 00:00:00 2001 From: Jayanthi Date: Mon, 8 Jan 2024 14:02:29 -0800 Subject: [PATCH 4/5] Update src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml Co-authored-by: Kyle Baley --- .../UI/InstanceAdd/ServiceControlAddView.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml index 83dd08cf2b..19c7700d4d 100644 --- a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml +++ b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml @@ -78,7 +78,7 @@ Foreground="{StaticResource ErrorBrush}" Text="Must select either an audit or an error instance." /> - + From eca4e1338f8930904459dee5636c56f259a33293 Mon Sep 17 00:00:00 2001 From: Jayanthi Date: Mon, 8 Jan 2024 14:02:36 -0800 Subject: [PATCH 5/5] Update src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml Co-authored-by: Kyle Baley --- .../UI/InstanceAdd/ServiceControlAddView.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml index 19c7700d4d..039f700263 100644 --- a/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml +++ b/src/ServiceControl.Config/UI/InstanceAdd/ServiceControlAddView.xaml @@ -240,7 +240,7 @@ - +