|
| 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 | + xmlns:c="using:SourceGit.Converters" |
| 8 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 9 | + x:Class="SourceGit.Views.PushRevision" |
| 10 | + x:DataType="vm:PushRevision"> |
| 11 | + <StackPanel Orientation="Vertical" Margin="8,0"> |
| 12 | + <TextBlock FontSize="18" |
| 13 | + Classes="bold" |
| 14 | + Text="{DynamicResource Text.Push.Revision.Title}"/> |
| 15 | + |
| 16 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32,32" ColumnDefinitions="130,*"> |
| 17 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 18 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 19 | + Margin="0,0,8,0" |
| 20 | + Text="{DynamicResource Text.Push.Revision}"/> |
| 21 | + <Grid Grid.Row="0" Grid.Column="1" ColumnDefinitions="Auto,Auto,*"> |
| 22 | + <Path Grid.Column="0" Width="14" Height="14" Data="{StaticResource Icons.Commit}"/> |
| 23 | + <TextBlock Grid.Column="1" |
| 24 | + Classes="primary" |
| 25 | + VerticalAlignment="Center" |
| 26 | + Text="{Binding Revision.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" |
| 27 | + Foreground="DarkOrange" |
| 28 | + Margin="8,0,0,0"/> |
| 29 | + <TextBlock Grid.Column="2" |
| 30 | + VerticalAlignment="Center" |
| 31 | + Text="{Binding Revision.Subject}" |
| 32 | + Margin="4,0,0,0" |
| 33 | + TextTrimming="CharacterEllipsis"/> |
| 34 | + </Grid> |
| 35 | + |
| 36 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 37 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 38 | + Margin="0,0,8,0" |
| 39 | + Text="{DynamicResource Text.Push.To}"/> |
| 40 | + <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal"> |
| 41 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Branch}"/> |
| 42 | + <TextBlock VerticalAlignment="Center" Text="{Binding RemoteBranch.FriendlyName}" Margin="8,0,0,0"/> |
| 43 | + </StackPanel> |
| 44 | + |
| 45 | + <CheckBox Grid.Row="2" Grid.Column="1" |
| 46 | + Content="{DynamicResource Text.Push.Force}" |
| 47 | + IsChecked="{Binding Force, Mode=TwoWay}" |
| 48 | + ToolTip.Tip="--force-with-lease"/> |
| 49 | + </Grid> |
| 50 | + </StackPanel> |
| 51 | +</UserControl> |
0 commit comments