|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:vm="using:SourceGit.ViewModels" |
6 | 6 | xmlns:v="using:SourceGit.Views" |
| 7 | + xmlns:c="using:SourceGit.Converters" |
7 | 8 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
8 | 9 | x:Class="SourceGit.Views.Clone" |
9 | 10 | x:DataType="vm:Clone"> |
|
19 | 20 | Text="{DynamicResource Text.Clone}"/> |
20 | 21 | </StackPanel> |
21 | 22 |
|
22 | | - <Grid Margin="8,16,0,0" RowDefinitions="32,Auto,32,32,32,32" ColumnDefinitions="Auto,*"> |
| 23 | + <Grid Margin="8,16,0,0" RowDefinitions="32,Auto,32,32,32,32,32,32" ColumnDefinitions="Auto,*"> |
23 | 24 | <TextBlock Grid.Row="0" Grid.Column="0" |
24 | 25 | HorizontalAlignment="Right" |
25 | 26 | Margin="0,0,8,0" |
|
102 | 103 | Watermark="{DynamicResource Text.Clone.AdditionalParam.Placeholder}" |
103 | 104 | Text="{Binding ExtraArgs, Mode=TwoWay}"/> |
104 | 105 |
|
105 | | - <CheckBox Grid.Row="5" Grid.Column="1" |
| 106 | + <TextBlock Grid.Row="5" Grid.Column="0" |
| 107 | + HorizontalAlignment="Right" |
| 108 | + Margin="0,0,8,0" |
| 109 | + Text="{DynamicResource Text.Clone.Group}"/> |
| 110 | + <ComboBox Grid.Row="5" Grid.Column="1" |
| 111 | + Height="28" Padding="8,0" |
| 112 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 113 | + ItemsSource="{Binding Groups}" |
| 114 | + SelectedItem="{Binding SelectedGroup, Mode=TwoWay}"> |
| 115 | + <ComboBox.ItemTemplate> |
| 116 | + <DataTemplate DataType="vm:RepositoryNode"> |
| 117 | + <TextBlock Text="{Binding Name, Mode=OneWay}"/> |
| 118 | + </DataTemplate> |
| 119 | + </ComboBox.ItemTemplate> |
| 120 | + </ComboBox> |
| 121 | + |
| 122 | + <TextBlock Grid.Row="6" Grid.Column="0" |
| 123 | + HorizontalAlignment="Right" |
| 124 | + Margin="0,0,8,0" |
| 125 | + Text="{DynamicResource Text.Clone.Bookmark}"/> |
| 126 | + <ComboBox Grid.Row="6" Grid.Column="1" |
| 127 | + Height="28" Padding="8,0" |
| 128 | + VerticalAlignment="Center" |
| 129 | + ItemsSource="{Binding Bookmarks}" |
| 130 | + SelectedItem="{Binding Bookmark, Mode=TwoWay}"> |
| 131 | + <ComboBox.ItemTemplate> |
| 132 | + <DataTemplate> |
| 133 | + <Grid Height="20"> |
| 134 | + <Path Width="12" Height="12" |
| 135 | + Fill="{Binding Converter={x:Static c:IntConverters.ToBookmarkBrush}}" |
| 136 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 137 | + Data="{StaticResource Icons.Bookmark}"/> |
| 138 | + </Grid> |
| 139 | + </DataTemplate> |
| 140 | + </ComboBox.ItemTemplate> |
| 141 | + </ComboBox> |
| 142 | + |
| 143 | + <CheckBox Grid.Row="7" Grid.Column="1" |
106 | 144 | Content="{DynamicResource Text.Clone.RecurseSubmodules}" |
107 | 145 | IsChecked="{Binding InitAndUpdateSubmodules, Mode=TwoWay}" |
108 | 146 | ToolTip.Tip="--recurse-submodules"/> |
|
0 commit comments