Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
Foreground="{StaticResource ErrorBrush}"
Text="Must select either an audit or an error instance." />

<CheckBox Padding="0, -10, 0, 0" IsChecked="{Binding InstallErrorInstance}">
<CheckBox IsThreeState="True" Padding="0, -10, 0, 0" IsChecked="{Binding InstallErrorInstance}" KeyDown ="CheckBoxError_Indeterminate" Checked="CheckBoxError_Indeterminate">
<StackPanel>
<Expander Header="ServiceControl" IsExpanded="{Binding IsServiceControlExpanded}" Margin="0,5,0,5">
<StackPanel Margin="60,0,60,0">
Expand Down Expand Up @@ -240,7 +240,7 @@
</StackPanel>
</CheckBox>

<CheckBox Padding="0, -10, 0, 0" IsChecked="{Binding InstallAuditInstance}">
<CheckBox IsThreeState="True" Padding="0, -10, 0, 0" IsChecked="{Binding InstallAuditInstance}" KeyDown ="CheckBoxAudit_Indeterminate" Checked="CheckBoxAudit_Indeterminate">
<Expander Header="ServiceControl Audit" IsExpanded="{Binding IsServiceControlAuditExpanded}" Margin="0,5,0,5">
<StackPanel Margin="60,0,60,0">
<Border Margin="0,40,0,20"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
namespace ServiceControl.Config.UI.InstanceAdd
{
using System.Windows;
using System.Windows.Controls;

public partial class ServiceControlAddView
{
public ServiceControlAddView()
{
InitializeComponent();
}
public void CheckBoxError_Indeterminate(object sender, RoutedEventArgs e)
{
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;
}
}
}