|
12 | 12 | Classes="bold"
|
13 | 13 | Text="{DynamicResource Text.Discard}"/>
|
14 | 14 |
|
| 15 | + <StackPanel Margin="0,6,0,0" Orientation="Horizontal"> |
| 16 | + <Path Width="14" Height="14" |
| 17 | + Data="{StaticResource Icons.Error}" |
| 18 | + Fill="DarkOrange"/> |
| 19 | + <TextBlock Margin="4,0,0,0" |
| 20 | + Text="{DynamicResource Text.Discard.Warning}" |
| 21 | + Foreground="{DynamicResource Brush.FG2}"/> |
| 22 | + </StackPanel> |
| 23 | + |
15 | 24 | <ContentControl Margin="0,16,0,8" Content="{Binding Mode}">
|
16 | 25 | <ContentControl.DataTemplates>
|
17 | 26 | <DataTemplate DataType="vm:DiscardAllMode">
|
18 |
| - <Grid RowDefinitions="Auto,Auto,36" ColumnDefinitions="120,*"> |
| 27 | + <Grid RowDefinitions="32,32" ColumnDefinitions="120,*"> |
19 | 28 | <TextBlock Grid.Row="0" Grid.Column="0"
|
20 | 29 | Margin="0,0,8,0"
|
21 | 30 | HorizontalAlignment="Right"
|
|
26 | 35 | <CheckBox Grid.Row="1" Grid.Column="1"
|
27 | 36 | Content="{DynamicResource Text.Discard.IncludeIgnored}"
|
28 | 37 | IsChecked="{Binding IncludeIgnored, Mode=TwoWay}"/>
|
29 |
| - |
30 |
| - <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal"> |
31 |
| - <Path Width="14" Height="14" |
32 |
| - Data="{StaticResource Icons.Error}" |
33 |
| - Fill="DarkOrange"/> |
34 |
| - <TextBlock Margin="4,0,0,0" |
35 |
| - Text="{DynamicResource Text.Discard.Warning}" |
36 |
| - Foreground="{DynamicResource Brush.FG2}"/> |
37 |
| - </StackPanel> |
38 | 38 | </Grid>
|
39 | 39 | </DataTemplate>
|
40 | 40 |
|
41 | 41 | <DataTemplate DataType="vm:DiscardSingleFile">
|
42 |
| - <Grid RowDefinitions="32,32" ColumnDefinitions="120,*"> |
43 |
| - <TextBlock Grid.Row="0" Grid.Column="0" |
| 42 | + <Grid Height="32" ColumnDefinitions="120,*"> |
| 43 | + <TextBlock Grid.Column="0" |
44 | 44 | Margin="0,0,8,0"
|
45 | 45 | HorizontalAlignment="Right"
|
46 | 46 | Text="{DynamicResource Text.Discard.Changes}"/>
|
47 |
| - <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
| 47 | + <StackPanel Grid.Column="1" Orientation="Horizontal"> |
48 | 48 | <Path Width="12" Height="12" Data="{StaticResource Icons.File}"/>
|
49 | 49 | <TextBlock Text="{Binding Path}" Margin="4,0,0,0"/>
|
50 | 50 | </StackPanel>
|
51 |
| - |
52 |
| - <TextBlock Grid.Row="1" Grid.Column="1" |
53 |
| - VerticalAlignment="Center" |
54 |
| - Text="{DynamicResource Text.Discard.Warning}" |
55 |
| - Foreground="{DynamicResource Brush.FG2}"/> |
56 | 51 | </Grid>
|
57 | 52 | </DataTemplate>
|
58 | 53 |
|
59 | 54 | <DataTemplate DataType="vm:DiscardMultipleFiles">
|
60 |
| - <Grid RowDefinitions="32,32" ColumnDefinitions="120,*"> |
61 |
| - <TextBlock Grid.Row="0" Grid.Column="0" |
| 55 | + <Grid Height="32" ColumnDefinitions="120,*"> |
| 56 | + <TextBlock Grid.Column="0" |
62 | 57 | Margin="0,0,8,0"
|
63 | 58 | HorizontalAlignment="Right"
|
64 | 59 | Text="{DynamicResource Text.Discard.Changes}"/>
|
65 |
| - <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
| 60 | + <StackPanel Grid.Column="1" Orientation="Horizontal"> |
66 | 61 | <Path Width="12" Height="12" Data="{StaticResource Icons.File}"/>
|
67 |
| - <TextBlock Text="{Binding Count, Converter={x:Static c:StringConverters.FormatByResourceKey}, ConverterParameter='Discard.Total'}" Margin="4,0,0,0"/> |
| 62 | + <TextBlock Text="{Binding Count, Converter={x:Static c:StringConverters.FormatByResourceKey}, ConverterParameter='Discard.Total'}" |
| 63 | + Margin="4,0,0,0"/> |
68 | 64 | </StackPanel>
|
69 |
| - |
70 |
| - <TextBlock Grid.Row="1" Grid.Column="1" |
71 |
| - VerticalAlignment="Center" |
72 |
| - Text="{DynamicResource Text.Discard.Warning}" |
73 |
| - Foreground="{DynamicResource Brush.FG2}"/> |
74 | 65 | </Grid>
|
75 | 66 | </DataTemplate>
|
76 | 67 | </ContentControl.DataTemplates>
|
|
0 commit comments