|
12 | 12 | <TextBlock FontSize="18"
|
13 | 13 | Classes="bold"
|
14 | 14 | Text="{DynamicResource Text.MergeMultiple}"/>
|
| 15 | + |
15 | 16 | <Grid Margin="0,16,0,0" RowDefinitions="Auto,32,32" ColumnDefinitions="100,*">
|
16 | 17 | <TextBlock Grid.Row="0" Grid.Column="0"
|
17 | 18 | HorizontalAlignment="Right" VerticalAlignment="Center"
|
18 | 19 | Margin="0,0,8,0"
|
19 |
| - Text="{DynamicResource Text.MergeMultiple.Commit}"/> |
| 20 | + Text="{DynamicResource Text.MergeMultiple.Targets}"/> |
20 | 21 | <ListBox Grid.Row="0" Grid.Column="1"
|
21 |
| - MinHeight="32" MaxHeight="100" |
| 22 | + MinHeight="32" MaxHeight="100" Margin="0,0,0,4" |
22 | 23 | ItemsSource="{Binding Targets}"
|
23 | 24 | Background="{DynamicResource Brush.Contents}"
|
24 | 25 | BorderThickness="1"
|
|
42 | 43 | </ListBox.ItemsPanel>
|
43 | 44 |
|
44 | 45 | <ListBox.ItemTemplate>
|
45 |
| - <DataTemplate DataType="m:Commit"> |
46 |
| - <Grid ColumnDefinitions="14,Auto,*"> |
47 |
| - <Path Grid.Column="0" Width="14" Height="14" Margin="0,8,0,0" Data="{StaticResource Icons.Commit}"/> |
48 |
| - <TextBlock Grid.Column="1" FontFamily="{DynamicResource Fonts.Monospace}" VerticalAlignment="Center" Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange" Margin="6,0,4,0"/> |
49 |
| - <TextBlock Grid.Column="2" VerticalAlignment="Center" Text="{Binding Subject}" TextTrimming="CharacterEllipsis"/> |
50 |
| - </Grid> |
51 |
| - </DataTemplate> |
| 46 | + <DataTemplate> |
| 47 | + <ContentControl Content="{Binding}"> |
| 48 | + <ContentControl.DataTemplates> |
| 49 | + <DataTemplate DataType="m:Commit"> |
| 50 | + <Grid ColumnDefinitions="14,Auto,*"> |
| 51 | + <Path Grid.Column="0" Width="14" Height="14" Margin="0,8,0,0" Data="{StaticResource Icons.Commit}"/> |
| 52 | + <TextBlock Grid.Column="1" FontFamily="{DynamicResource Fonts.Monospace}" VerticalAlignment="Center" Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange" Margin="6,0,4,0"/> |
| 53 | + <TextBlock Grid.Column="2" VerticalAlignment="Center" Text="{Binding Subject}" TextTrimming="CharacterEllipsis"/> |
| 54 | + </Grid> |
| 55 | + </DataTemplate> |
| 56 | + |
| 57 | + <DataTemplate DataType="m:Branch"> |
| 58 | + <StackPanel Orientation="Horizontal"> |
| 59 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Branch}"/> |
| 60 | + <TextBlock VerticalAlignment="Center" Text="{Binding FriendlyName}" Margin="8,0,0,0"/> |
| 61 | + </StackPanel> |
| 62 | + </DataTemplate> |
| 63 | + </ContentControl.DataTemplates> |
| 64 | + </ContentControl> |
| 65 | + </DataTemplate> |
52 | 66 | </ListBox.ItemTemplate>
|
53 | 67 | </ListBox>
|
54 |
| - |
55 |
| - <CheckBox Grid.Row="1" Grid.Column="1" |
56 |
| - Content="{DynamicResource Text.MergeMultiple.CommitChanges}" |
57 |
| - IsChecked="{Binding AutoCommit, Mode=TwoWay}"/> |
58 | 68 |
|
59 |
| - <TextBlock Grid.Row="2" Grid.Column="0" |
| 69 | + <TextBlock Grid.Row="1" Grid.Column="0" |
60 | 70 | HorizontalAlignment="Right" VerticalAlignment="Center"
|
61 | 71 | Margin="0,0,8,0"
|
62 | 72 | Text="{DynamicResource Text.MergeMultiple.Strategy}"/>
|
63 |
| - <ComboBox Grid.Row="2" Grid.Column="1" |
| 73 | + <ComboBox Grid.Row="1" Grid.Column="1" |
64 | 74 | Height="28" Padding="8,0"
|
65 | 75 | VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
66 | 76 | ItemsSource="{Binding Source={x:Static m:MergeStrategy.ForMultiple}}"
|
|
74 | 84 | </DataTemplate>
|
75 | 85 | </ComboBox.ItemTemplate>
|
76 | 86 | </ComboBox>
|
| 87 | + |
| 88 | + <CheckBox Grid.Row="2" Grid.Column="1" |
| 89 | + Content="{DynamicResource Text.MergeMultiple.CommitChanges}" |
| 90 | + IsChecked="{Binding AutoCommit, Mode=TwoWay}"/> |
77 | 91 | </Grid>
|
78 | 92 | </StackPanel>
|
79 | 93 | </UserControl>
|
0 commit comments