|
| 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:v="using:SourceGit.Views" |
| 7 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 8 | + x:Class="SourceGit.Views.CheckoutBranchFromStash" |
| 9 | + x:DataType="vm:CheckoutBranchFromStash"> |
| 10 | + <StackPanel Orientation="Vertical" Margin="8,0,0,0"> |
| 11 | + <StackPanel Orientation="Horizontal"> |
| 12 | + <Path Width="16" Height="16" |
| 13 | + Data="{StaticResource Icons.Branch.Add}"/> |
| 14 | + |
| 15 | + <TextBlock FontSize="18" |
| 16 | + Margin="8,0,0,0" |
| 17 | + Classes="bold" |
| 18 | + Text="{DynamicResource Text.CheckoutBranchFromStash}"/> |
| 19 | + </StackPanel> |
| 20 | + |
| 21 | + <Grid Margin="0,16,8,0" RowDefinitions="32,32" ColumnDefinitions="120,*"> |
| 22 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 23 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 24 | + Margin="0,0,8,0" |
| 25 | + Text="{DynamicResource Text.CheckoutBranchFromStash.Stash}"/> |
| 26 | + <Grid Grid.Row="0" Grid.Column="1" ColumnDefinitions="Auto,Auto,*"> |
| 27 | + <Path Grid.Column="0" |
| 28 | + Width="12" Height="12" |
| 29 | + Margin="2,0,8,0" |
| 30 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 31 | + Data="{StaticResource Icons.Stashes}"/> |
| 32 | + |
| 33 | + <TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{Binding Target.Name}" Foreground="DarkOrange"/> |
| 34 | + <TextBlock Grid.Column="2" VerticalAlignment="Center" Text="{Binding Target.Subject}" TextTrimming="CharacterEllipsis" Margin="4,0,0,0"/> |
| 35 | + </Grid> |
| 36 | + |
| 37 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 38 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 39 | + Margin="0,0,8,0" |
| 40 | + Text="{DynamicResource Text.CheckoutBranchFromStash.Branch}"/> |
| 41 | + <v:BranchOrTagNameTextBox Grid.Row="1" Grid.Column="1" |
| 42 | + Height="26" |
| 43 | + VerticalAlignment="Center" |
| 44 | + CornerRadius="3" |
| 45 | + Text="{Binding BranchName, Mode=TwoWay}"/> |
| 46 | + </Grid> |
| 47 | + </StackPanel> |
| 48 | +</UserControl> |
0 commit comments