|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:m="using:SourceGit.Models" |
| 6 | + xmlns:vm="using:SourceGit.ViewModels" |
| 7 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 8 | + x:Class="SourceGit.Views.CheckoutAndFastForward" |
| 9 | + x:DataType="vm:CheckoutAndFastForward"> |
| 10 | + <StackPanel Orientation="Vertical" Margin="8,0"> |
| 11 | + <TextBlock FontSize="18" |
| 12 | + Classes="bold" |
| 13 | + Text="{DynamicResource Text.Checkout.WithFastForward}"/> |
| 14 | + |
| 15 | + <Grid Margin="0,16,0,0" ColumnDefinitions="140,*"> |
| 16 | + <Grid.RowDefinitions> |
| 17 | + <RowDefinition Height="32"/> |
| 18 | + <RowDefinition Height="32"/> |
| 19 | + <RowDefinition Height="Auto" MinHeight="32"/> |
| 20 | + <RowDefinition Height="Auto"/> |
| 21 | + </Grid.RowDefinitions> |
| 22 | + |
| 23 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 24 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 25 | + Margin="0,0,8,0" |
| 26 | + Text="{DynamicResource Text.Checkout.Target}"/> |
| 27 | + <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
| 28 | + <Path Width="14" Height="14" Margin="4,0" Data="{StaticResource Icons.Branch}"/> |
| 29 | + <TextBlock Text="{Binding LocalBranch.Name}"/> |
| 30 | + </StackPanel> |
| 31 | + |
| 32 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 33 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 34 | + Margin="0,0,8,0" |
| 35 | + Text="{DynamicResource Text.Checkout.WithFastForward.Upstream}"/> |
| 36 | + <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal"> |
| 37 | + <Path Width="14" Height="14" Margin="4,0" Data="{StaticResource Icons.Branch}"/> |
| 38 | + <TextBlock Text="{Binding RemoteBrach.FriendlyName}"/> |
| 39 | + </StackPanel> |
| 40 | + |
| 41 | + <TextBlock Grid.Row="2" Grid.Column="0" |
| 42 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 43 | + Margin="0,0,8,0" |
| 44 | + Text="{DynamicResource Text.Checkout.LocalChanges}"/> |
| 45 | + <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center"> |
| 46 | + <RadioButton GroupName="LocalChanges" |
| 47 | + Margin="0,0,8,0" |
| 48 | + Content="{DynamicResource Text.Checkout.LocalChanges.StashAndReply}" |
| 49 | + IsChecked="{Binding !DiscardLocalChanges, Mode=TwoWay}"/> |
| 50 | + <RadioButton GroupName="LocalChanges" |
| 51 | + Content="{DynamicResource Text.Checkout.LocalChanges.Discard}"/> |
| 52 | + </WrapPanel> |
| 53 | + |
| 54 | + <CheckBox Grid.Row="3" Grid.Column="1" |
| 55 | + Height="32" |
| 56 | + Content="{DynamicResource Text.Checkout.RecurseSubmodules}" |
| 57 | + IsChecked="{Binding RecurseSubmodules, Mode=TwoWay}" |
| 58 | + IsVisible="{Binding IsRecurseSubmoduleVisible}" |
| 59 | + ToolTip.Tip="--recurse-submodules"/> |
| 60 | + </Grid> |
| 61 | + </StackPanel> |
| 62 | +</UserControl> |
0 commit comments