mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
67 lines
3 KiB
Text
67 lines
3 KiB
Text
|
<UserControl x:Class="SourceGit.UI.Fetch"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:git="clr-namespace:SourceGit.Git"
|
||
|
xmlns:converters="clr-namespace:SourceGit.Converters"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="192" d:DesignWidth="500" Height="192" Width="500">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="32"/>
|
||
|
<RowDefinition Height="16"/>
|
||
|
<RowDefinition Height="32"/>
|
||
|
<RowDefinition Height="32"/>
|
||
|
<RowDefinition Height="32"/>
|
||
|
<RowDefinition Height="16"/>
|
||
|
<RowDefinition Height="32"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="150"/>
|
||
|
<ColumnDefinition Width="*"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<Grid.Resources>
|
||
|
<converters:InverseBool x:Key="InverseBool"/>
|
||
|
</Grid.Resources>
|
||
|
|
||
|
<Label Grid.Row="0" Grid.ColumnSpan="2" FontWeight="DemiBold" FontSize="18" Content="Fetch Remote Changes"/>
|
||
|
|
||
|
<Label Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" Content="Remote :"/>
|
||
|
<ComboBox x:Name="combRemotes" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" IsEnabled="{Binding ElementName=chkFetchAll, Path=IsChecked, Converter={StaticResource InverseBool}}">
|
||
|
<ComboBox.ItemTemplate>
|
||
|
<DataTemplate DataType="{x:Type git:Remote}">
|
||
|
<StackPanel Orientation="Horizontal" Height="20">
|
||
|
<Path Margin="4,0,0,0" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Remote}"/>
|
||
|
<Label Content="{Binding Name}" Padding="8,0,0,0"/>
|
||
|
</StackPanel>
|
||
|
</DataTemplate>
|
||
|
</ComboBox.ItemTemplate>
|
||
|
</ComboBox>
|
||
|
|
||
|
<CheckBox Grid.Row="3" Grid.Column="1"
|
||
|
x:Name="chkFetchAll"
|
||
|
IsChecked="True"
|
||
|
Content="Fetch all remotes"/>
|
||
|
|
||
|
<CheckBox Grid.Row="4" Grid.Column="1"
|
||
|
x:Name="chkPrune"
|
||
|
IsChecked="True"
|
||
|
Content="Prune remote dead branches"/>
|
||
|
|
||
|
<Grid Grid.Row="6" Grid.ColumnSpan="2">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*"/>
|
||
|
<ColumnDefinition Width="80"/>
|
||
|
<ColumnDefinition Width="8"/>
|
||
|
<ColumnDefinition Width="80"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<Button Grid.Column="1" Click="Start" Content="SURE" Style="{StaticResource Style.Button.AccentBordered}"/>
|
||
|
<Button Grid.Column="3" Click="Cancel" Content="CANCEL" Style="{StaticResource Style.Button.Bordered}"/>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</UserControl>
|