|
| 1 | +<v:ChromelessWindow 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:v="using:SourceGit.Views" |
| 6 | + xmlns:vm="using:SourceGit.ViewModels" |
| 7 | + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
| 8 | + x:Class="SourceGit.Views.ConfirmCommitWithoutFiles" |
| 9 | + x:DataType="vm:ConfirmCommitWithoutFiles" |
| 10 | + x:Name="ThisControl" |
| 11 | + Icon="/App.ico" |
| 12 | + Title="{DynamicResource Text.Warn}" |
| 13 | + SizeToContent="WidthAndHeight" |
| 14 | + CanResize="False" |
| 15 | + WindowStartupLocation="CenterOwner"> |
| 16 | + <Grid RowDefinitions="Auto,Auto,Auto"> |
| 17 | + <!-- TitleBar --> |
| 18 | + <Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Height="30" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
| 19 | + <Border Grid.Column="0" Grid.ColumnSpan="3" |
| 20 | + Background="{DynamicResource Brush.TitleBar}" |
| 21 | + BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}" |
| 22 | + PointerPressed="BeginMoveWindow"/> |
| 23 | + |
| 24 | + <Path Grid.Column="0" |
| 25 | + Width="14" Height="14" |
| 26 | + Data="{StaticResource Icons.Error}" |
| 27 | + Margin="10,0,0,0" |
| 28 | + IsVisible="{OnPlatform True, macOS=False}"/> |
| 29 | + |
| 30 | + <v:CaptionButtonsMacOS Grid.Column="0" |
| 31 | + Margin="0,2,0,0" |
| 32 | + IsCloseButtonOnly="True" |
| 33 | + IsVisible="{OnPlatform False, macOS=True}"/> |
| 34 | + |
| 35 | + <TextBlock Grid.Column="0" Grid.ColumnSpan="3" |
| 36 | + Classes="bold" |
| 37 | + Text="{DynamicResource Text.Warn}" |
| 38 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 39 | + IsHitTestVisible="False"/> |
| 40 | + |
| 41 | + <v:CaptionButtons Grid.Column="2" |
| 42 | + IsCloseButtonOnly="True" |
| 43 | + IsVisible="{OnPlatform True, macOS=False}"/> |
| 44 | + </Grid> |
| 45 | + |
| 46 | + <!-- Body --> |
| 47 | + <Border Grid.Row="1" Margin="16"> |
| 48 | + <TextBlock Text="{DynamicResource Text.WorkingCopy.ConfirmCommitWithoutFiles}"/> |
| 49 | + </Border> |
| 50 | + |
| 51 | + <!-- Buttons --> |
| 52 | + <StackPanel Grid.Row="2" Margin="0,0,0,16" Orientation="Horizontal" HorizontalAlignment="Center"> |
| 53 | + <Button Classes="flat" |
| 54 | + Width="80" |
| 55 | + Height="30" |
| 56 | + Margin="4,0" |
| 57 | + Click="Sure" |
| 58 | + Content="{DynamicResource Text.Sure}" |
| 59 | + HorizontalAlignment="Center" |
| 60 | + HorizontalContentAlignment="Center" |
| 61 | + VerticalContentAlignment="Center"/> |
| 62 | + |
| 63 | + <Button Classes="flat primary" |
| 64 | + Width="80" |
| 65 | + Height="30" |
| 66 | + Margin="4,0" |
| 67 | + Click="CloseWindow" |
| 68 | + Content="{DynamicResource Text.Cancel}" |
| 69 | + HorizontalAlignment="Center" |
| 70 | + HorizontalContentAlignment="Center" |
| 71 | + VerticalContentAlignment="Center"/> |
| 72 | + </StackPanel> |
| 73 | + </Grid> |
| 74 | +</v:ChromelessWindow> |
0 commit comments