-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfirmationDialog.xaml
63 lines (63 loc) · 4.07 KB
/
ConfirmationDialog.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Window x:Class="DotNetPad.ConfirmationDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DotNetPad"
mc:Ignorable="d" WindowStartupLocation="CenterOwner"
ShowInTaskbar="False" ResizeMode="CanResize" WindowStyle="None" Loaded="Window_Loaded"
SizeToContent="WidthAndHeight" BorderThickness="0" Background="Transparent">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" Name="TopGrid" HorizontalAlignment="Stretch" VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="25" />
<ColumnDefinition Width="*" MaxWidth="700" />
<ColumnDefinition Width="25" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Height="Auto" Text=".NETpad"
Style="{DynamicResource SubtitleTextBlockStyle}"
Margin="0,25,0,10" />
<TextBlock Grid.Row="1" Name="ConfirmTextBlock" Text="Do you want to save the changes to Untitled.txt?"
Style="{DynamicResource BodyTextBlockStyle}" Margin="0,0,10,0" />
</Grid>
</Grid>
<Border Grid.Row="1" Name="BottomBorder" BorderThickness="0,1,0,0"
HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0,25,0,0"
BorderBrush="{DynamicResource DividerStrokeColorDefaultBrush}"
Background="{DynamicResource LayerOnMicaBaseAltFillColorSecondaryBrush}" >
<Grid Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="25" />
<ColumnDefinition Width="*" MinWidth="100" MaxWidth="700" />
<ColumnDefinition Width="25" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="1" Name="ButtonGrid" HorizontalAlignment="Stretch" VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition MaxWidth="300" Width="*" />
<ColumnDefinition MaxWidth="300" Width="*" />
<ColumnDefinition MaxWidth="300" Width="*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="Save" MinWidth="90" Height="32" MinHeight="32" Focusable="True"
HorizontalAlignment="Stretch" Margin="0,20,10,20" Name="ConfirmationSaveButton" Click="ConfirmationButton_Click"
TabIndex="0" IsDefault="True"
Style="{DynamicResource AccentButtonStyle}" />
<Button Grid.Column="1" Content="Don't save" MinWidth="90" Height="32" MinHeight="32"
HorizontalAlignment="Stretch" TabIndex="1"
Margin="0,20,0,20" Name="ConfirmationDontSaveButton" Focusable="True" Click="ConfirmationButton_Click" />
<Button Grid.Column="2" Content="Cancel" MinWidth="90" Height="32" MinHeight="32"
HorizontalAlignment="Stretch" IsCancel="true" TabIndex="2"
Margin="10,20,0,20" Name="ConfirmationCancelButton" Focusable="True" Click="ConfirmationButton_Click" />
</Grid>
</Grid>
</Border>
</Grid>
</Window>