-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMessageBox.axaml
More file actions
84 lines (71 loc) · 3.32 KB
/
MessageBox.axaml
File metadata and controls
84 lines (71 loc) · 3.32 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<Window xmlns="https://github.com/avaloniaui"
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"
mc:Ignorable="d" d:DesignWidth="328" d:DesignHeight="150"
x:Class="Autodraw.MessageBox"
Name="Message"
Width="320"
Height="150"
CanResize="False"
WindowStartupLocation="CenterScreen"
ShowInTaskbar="False"
Topmost="True"
Title="Message"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="NoChrome"
ExtendClientAreaTitleBarHeightHint="20"
SystemDecorations="BorderOnly"
PointerPressed="OnPointerPressed">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<!--Toolbar-->
<Canvas Grid.Row="0" Width="{Binding $parent[Window].Bounds.Width}" Height="20">
<!--Background-->
<Canvas Classes="Toolbar ClickThru" Width="{Binding $parent[Window].Bounds.Width}" Height="20" />
<Image Classes="Toolbar" HorizontalAlignment="Stretch" Height="20" />
<!--Decorations-->
<StackPanel Classes="Toolbar" Orientation="Horizontal">
<Label Classes="Title Bold ClickThru" Margin="0" Padding="6 0 0 0" Height="20"
VerticalContentAlignment="Center">
Message
</Label>
</StackPanel>
<!--Buttons-->
<Grid Name="ToolbarButtons" Classes="ToolbarButtons" Width="{Binding $parent[Window].Bounds.Width}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="20" />
<ColumnDefinition Width="20" />
<ColumnDefinition Width="20" />
</Grid.ColumnDefinitions>
<Button Classes="CloseApp ToolbarButton" Name="CloseAppButton" Grid.Column="3" Width="20" Height="20"
FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Padding="0">
<Image Classes="CloseApp ToolbarButton" />
</Button>
</Grid>
</Canvas>
<!--Body-->
<Grid Classes="Body" Grid.Row="1" Name="Body" Margin="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="48" />
<ColumnDefinition Width="8" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="48" />
<RowDefinition Height="4" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Image Name="MessageIcon" Grid.Row="0" Grid.Column="0" Source="/Assets/Message/info.png" />
<TextBlock Name="MessageTitle" Grid.Row="0" Grid.Column="2" FontSize="16">Info!</TextBlock>
<TextBox Name="MessageContent" Grid.Row="2" Grid.ColumnSpan="3" IsReadOnly="True" FontSize="12"
TextWrapping="Wrap">
Info Content!
</TextBox>
</Grid>
</Grid>
</Window>