|
10 | 10 | <TextBlock FontSize="18"
|
11 | 11 | Classes="bold"
|
12 | 12 | Text="{DynamicResource Text.UpdateSubmodules}"/>
|
13 |
| - <TextBlock Text="{DynamicResource Text.UpdateSubmodules.Tip}" |
14 |
| - Margin="0,16,0,0" |
15 |
| - HorizontalAlignment="Center"/> |
| 13 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32,32,32,32" ColumnDefinitions="120,*"> |
| 14 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 15 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 16 | + Margin="0,0,8,0" |
| 17 | + Text="{DynamicResource Text.UpdateSubmodules.Target}"/> |
| 18 | + <ComboBox Grid.Row="0" Grid.Column="1" |
| 19 | + Height="28" Padding="8,0" |
| 20 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 21 | + ItemsSource="{Binding Submodules}" |
| 22 | + SelectedItem="{Binding SelectedSubmodule, Mode=TwoWay}" |
| 23 | + IsEnabled="{Binding !UpdateAll}"> |
| 24 | + <ComboBox.ItemTemplate> |
| 25 | + <DataTemplate x:DataType="x:String"> |
| 26 | + <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
| 27 | + <Path Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Submodule}"/> |
| 28 | + <TextBlock Text="{Binding}"/> |
| 29 | + </StackPanel> |
| 30 | + </DataTemplate> |
| 31 | + </ComboBox.ItemTemplate> |
| 32 | + </ComboBox> |
| 33 | + |
| 34 | + <CheckBox Grid.Row="1" Grid.Column="1" |
| 35 | + Content="{DynamicResource Text.UpdateSubmodules.All}" |
| 36 | + IsChecked="{Binding UpdateAll, Mode=TwoWay}"/> |
| 37 | + |
| 38 | + <CheckBox Grid.Row="2" Grid.Column="1" |
| 39 | + Content="{DynamicResource Text.UpdateSubmodules.Init}" |
| 40 | + IsChecked="{Binding EnableInit, Mode=TwoWay}"/> |
| 41 | + |
| 42 | + <CheckBox Grid.Row="3" Grid.Column="1" |
| 43 | + Content="{DynamicResource Text.UpdateSubmodules.Recursive}" |
| 44 | + IsChecked="{Binding EnableRecursive, Mode=TwoWay}"/> |
| 45 | + |
| 46 | + <CheckBox Grid.Row="4" Grid.Column="1" |
| 47 | + Content="{DynamicResource Text.UpdateSubmodules.UseRemote}" |
| 48 | + IsChecked="{Binding EnableRemote, Mode=TwoWay}"/> |
| 49 | + </Grid> |
16 | 50 | </StackPanel>
|
17 | 51 | </UserControl>
|
0 commit comments