|
| 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:vm="using:SourceGit.ViewModels" |
| 6 | + xmlns:c="clr-namespace:SourceGit.Converters" |
| 7 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 8 | + x:Class="SourceGit.Views.CheckoutCommit" |
| 9 | + x:DataType="vm:CheckoutCommit"> |
| 10 | + <StackPanel Orientation="Vertical" Margin="8,0"> |
| 11 | + <TextBlock FontSize="18" |
| 12 | + Classes="bold" |
| 13 | + Text="{DynamicResource Text.Checkout.Commit}"/> |
| 14 | + |
| 15 | + <TextBlock FontSize="14" |
| 16 | + TextWrapping="Wrap" |
| 17 | + Classes="italic" |
| 18 | + Text="{DynamicResource Text.Checkout.Commit.Warning}"/> |
| 19 | + |
| 20 | + <TextBlock TextWrapping="Wrap" Margin="0,16,0,0"> |
| 21 | + <TextBlock Classes="bold" Grid.Row="0" Grid.Column="0" |
| 22 | + Text="{DynamicResource Text.Checkout.CommitTarget.Sha}"/> |
| 23 | + <TextBlock TextWrapping="Wrap" Text="{Binding Commit}"/> |
| 24 | + (<TextBlock Classes="italic" TextWrapping="Wrap" Text="{Binding Commit, Converter={x:Static c:StringConverters.ToShortSHA}}"/>) |
| 25 | + </TextBlock> |
| 26 | + |
| 27 | + <StackPanel Margin="0, 26, 0, 0" Grid.Row="1" Grid.Column="1" Orientation="Vertical" IsVisible="{Binding HasLocalChanges}"> |
| 28 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 29 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 30 | + Margin="0,0,8,0" |
| 31 | + Text="{DynamicResource Text.Checkout.LocalChanges}"/> |
| 32 | + |
| 33 | + <StackPanel Margin="0, 13, 0, 0" Grid.Row="1" Grid.Column="1" Orientation="Horizontal"> |
| 34 | + <RadioButton Content="{DynamicResource Text.Checkout.LocalChanges.StashAndReply}" |
| 35 | + GroupName="LocalChanges" |
| 36 | + IsChecked="{Binding AutoStash, Mode=TwoWay}"/> |
| 37 | + <RadioButton Content="{DynamicResource Text.Checkout.LocalChanges.Discard}" |
| 38 | + GroupName="LocalChanges" |
| 39 | + Margin="8,0,0,0"/> |
| 40 | + </StackPanel> |
| 41 | + </StackPanel> |
| 42 | + |
| 43 | + |
| 44 | + </StackPanel> |
| 45 | +</UserControl> |
0 commit comments