Skip to content

Commit ca1d037

Browse files
author
Greg Bielleman
committed
Fixes #599
1 parent ebedc52 commit ca1d037

File tree

2 files changed

+26
-34
lines changed

2 files changed

+26
-34
lines changed

src/ServiceControl.Config/UI/DeleteInstanceConfirmation/DeleteInstanceConfirmationView.xaml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,25 @@
1818
<Style TargetType="{x:Type TextBlock}">
1919
<Setter Property="FontSize" Value="14" />
2020
</Style>
21-
<Style TargetType="{x:Type CheckBox}">
22-
<Setter Property="Foreground" Value="{StaticResource WhiteBrush}" />
23-
<Setter Property="FontSize" Value="14" />
24-
<Setter Property="Margin" Value="0,5" />
25-
</Style>
21+
2622
</controls:CleanWindow.Resources>
2723

28-
<Grid Margin="40,35">
24+
<Grid Margin="40,35,40,0">
2925
<Grid.RowDefinitions>
3026
<RowDefinition Height="auto" />
3127
<RowDefinition Height="auto" />
3228
<RowDefinition Height="35" />
3329
<RowDefinition Height="auto" />
3430
<RowDefinition Height="auto" />
35-
<RowDefinition Height="auto" />
36-
<RowDefinition Height="*" />
31+
<RowDefinition Height="8.6" />
32+
<RowDefinition Height="56.2"/>
33+
<RowDefinition Height="5*" />
3734
</Grid.RowDefinitions>
3835

39-
<Border Margin="-40,0"
36+
<Border Margin="-40,0,-40.4,0"
4037
BorderBrush="{StaticResource Gray20Brush}"
4138
BorderThickness="0,0,0,1" />
42-
<Grid Margin="0,5">
39+
<Grid Margin="0,5,-0.4,5">
4340
<Grid.ColumnDefinitions>
4441
<ColumnDefinition Width="auto" />
4542
<ColumnDefinition Width="*" />
@@ -53,7 +50,7 @@
5350
Text="{Binding InstanceName}" />
5451
</Grid>
5552

56-
<Grid Grid.Row="1" Margin="0,25">
53+
<Grid Grid.Row="1" Margin="0,25,-0.4,25.4">
5754
<Grid.ColumnDefinitions>
5855
<ColumnDefinition Width="auto" />
5956
<ColumnDefinition Width="*" />
@@ -71,19 +68,22 @@
7168
TextWrapping="Wrap" />
7269
</Grid>
7370

74-
<TextBlock Grid.Row="2"
71+
<TextBlock Grid.Row="1"
7572
FontWeight="Bold"
76-
Text="Optional - remove associated data:" />
77-
73+
Text="Optional - remove associated data:" Margin="0,110,-0.4,27.6" Grid.RowSpan="3" />
74+
<CheckBox Grid.Row="2"
75+
IsChecked="{Binding RemoveDatabase}"
76+
VerticalContentAlignment="Center" Margin="0,34.6,-0.4,0.6" Grid.RowSpan="2">
77+
<Label Foreground="{StaticResource WhiteBrush}" FontSize="14">Remove associated DB data</Label>
78+
</CheckBox>
7879
<CheckBox Grid.Row="3"
79-
Content="Remove associated DB data"
80-
IsChecked="{Binding RemoveDatabase}" />
81-
<CheckBox Grid.Row="4"
82-
Content="Remove associated Logs"
83-
IsChecked="{Binding RemoveLogs}" />
80+
IsChecked="{Binding RemoveLogs}"
81+
VerticalContentAlignment="Center" Margin="0,27.4,-0.4,0.6" Grid.RowSpan="2">
82+
<Label Foreground="{StaticResource WhiteBrush}" FontSize="14" >Remove associated Logs</Label>
83+
</CheckBox>
8484

85-
<Grid Grid.Row="5"
86-
Margin="0,25,0,0"
85+
<Grid Grid.Row="6"
86+
Margin="0,15.6,-0.4,0"
8787
VerticalAlignment="Top">
8888
<Grid.ColumnDefinitions>
8989
<ColumnDefinition Width="*" />
@@ -101,9 +101,5 @@
101101
IsCancel="True"
102102
Style="{StaticResource BasicButton}" />
103103
</Grid>
104-
105-
<TextBlock Grid.Row="6"
106-
Foreground="Transparent"
107-
Text="Invisible element to fix WPF layout bug. DO NOT REMOVE" />
108104
</Grid>
109105
</controls:CleanWindow>

src/ServiceControl.Config/UI/FeedBack/FeedBackView.xaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
<Style TargetType="{x:Type TextBlock}">
1919
<Setter Property="FontSize" Value="14" />
2020
</Style>
21-
<Style TargetType="{x:Type CheckBox}">
22-
<Setter Property="Foreground" Value="{StaticResource WhiteBrush}" />
23-
<Setter Property="FontSize" Value="14" />
24-
<Setter Property="Margin" Value="0,5" />
25-
</Style>
2621
</controls:CleanWindow.Resources>
2722

2823
<Grid Margin="15,0">
@@ -76,14 +71,15 @@
7671
Foreground="White"
7772
Header="YOUR EMAIL ADDRESS (Optional)"
7873
Text="{Binding EmailAddress}" />
79-
74+
8075
<CheckBox Grid.Row="5"
8176
Margin="0,5"
8277
HorizontalAlignment="Left"
83-
Content="Include operating system version and hardware information when sending feedback"
8478
FontSize="12"
85-
Foreground="White"
86-
IsChecked="{Binding IncludeSystemInfo}" />
79+
IsChecked="{Binding IncludeSystemInfo}"
80+
VerticalContentAlignment="Center">
81+
<Label Foreground="{StaticResource WhiteBrush}">Include operating system version and hardware information when sending feedback</Label>
82+
</CheckBox>
8783

8884
<Grid Grid.Row="6"
8985
Margin="5"

0 commit comments

Comments
 (0)