|
12 | 12 | <TextBlock FontSize="18" |
13 | 13 | Classes="bold" |
14 | 14 | Text="{DynamicResource Text.CherryPick}"/> |
15 | | - <Grid Margin="0,16,0,0" ColumnDefinitions="100,*"> |
16 | | - <Grid.RowDefinitions> |
17 | | - <RowDefinition Height="Auto"/> |
18 | | - <RowDefinition Height="32"/> |
19 | | - </Grid.RowDefinitions> |
20 | | - |
| 15 | + <Grid Margin="0,16,0,0" RowDefinitions="Auto,Auto,32,32" ColumnDefinitions="100,*"> |
21 | 16 | <TextBlock Grid.Row="0" Grid.Column="0" |
22 | | - HorizontalAlignment="Right" VerticalAlignment="Top" |
| 17 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
23 | 18 | Margin="0,0,8,0" |
24 | 19 | Text="{DynamicResource Text.CherryPick.Commit}"/> |
25 | | - |
26 | 20 | <ListBox Grid.Row="0" Grid.Column="1" |
27 | 21 | MinHeight="32" MaxHeight="100" |
28 | 22 | ItemsSource="{Binding Targets}" |
|
56 | 50 | </Grid> |
57 | 51 | </DataTemplate> |
58 | 52 | </ListBox.ItemTemplate> |
59 | | - </ListBox> |
| 53 | + </ListBox> |
| 54 | + |
| 55 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 56 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 57 | + Margin="0,0,8,0" |
| 58 | + Text="{DynamicResource Text.CherryPick.Mainline}" |
| 59 | + IsVisible="{Binding IsMergeCommit}"/> |
| 60 | + <Grid Grid.Row="1" Grid.Column="1" Height="32" ColumnDefinitions="*,24" IsVisible="{Binding IsMergeCommit}"> |
| 61 | + <ComboBox Grid.Column="0" |
| 62 | + Height="28" Padding="4,0" |
| 63 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 64 | + ItemsSource="{Binding ParentsForMergeCommit}" |
| 65 | + SelectedIndex="{Binding MainlineForMergeCommit, Mode=TwoWay}"> |
| 66 | + <ComboBox.ItemTemplate> |
| 67 | + <DataTemplate x:DataType="{x:Type m:Commit}"> |
| 68 | + <Grid ColumnDefinitions="Auto,*"> |
| 69 | + <TextBlock Grid.Column="0" FontFamily="{DynamicResource Fonts.Monospace}" VerticalAlignment="Center" Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" Foreground="DarkOrange" Margin="6,0,4,0"/> |
| 70 | + <TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{Binding Subject}" TextTrimming="CharacterEllipsis"/> |
| 71 | + </Grid> |
| 72 | + </DataTemplate> |
| 73 | + </ComboBox.ItemTemplate> |
| 74 | + </ComboBox> |
60 | 75 |
|
61 | | - <CheckBox Grid.Row="1" Grid.Column="1" |
| 76 | + <Border Grid.Column="1" |
| 77 | + Background="Transparent" |
| 78 | + ToolTip.Tip="{DynamicResource Text.CherryPick.Mainline.Tips}"> |
| 79 | + <Path Grid.Column="1" |
| 80 | + Width="14" Height="14" |
| 81 | + Data="{StaticResource Icons.Info}"/> |
| 82 | + </Border> |
| 83 | + </Grid> |
| 84 | + |
| 85 | + <CheckBox Grid.Row="2" Grid.Column="1" |
62 | 86 | Content="{DynamicResource Text.CherryPick.CommitChanges}" |
63 | 87 | IsChecked="{Binding AutoCommit, Mode=TwoWay}"/> |
| 88 | + |
| 89 | + <CheckBox Grid.Row="3" Grid.Column="1" |
| 90 | + Content="{DynamicResource Text.CherryPick.AppendSourceToMessage}" |
| 91 | + IsChecked="{Binding AppendSourceToMessage, Mode=TwoWay}" |
| 92 | + IsEnabled="{Binding AutoCommit}" |
| 93 | + ToolTip.Tip="-x"/> |
64 | 94 | </Grid> |
65 | 95 | </StackPanel> |
66 | 96 | </UserControl> |
0 commit comments