-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
67 lines (60 loc) · 3.32 KB
/
MainWindow.axaml
File metadata and controls
67 lines (60 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
<Window x:Class="AutodrawInstaller.MainWindow"
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="728" d:DesignHeight="450"
x:Name="AutoDrawInstaller"
Width="720"
Height="420"
CanResize="True"
DragDrop.AllowDrop="False"
MinWidth="720"
MinHeight="420"
WindowStartupLocation="CenterScreen"
Title="AutoDraw Installer"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="NoChrome"
ExtendClientAreaTitleBarHeightHint="20">
<Grid RowDefinitions="20,1*" Background="#9555">
<!--Toolbar-->
<Canvas Grid.Row="0" Background="#222" Width="{Binding $parent[Window].Bounds.Width}" Height="20">
<!--Background-->
<Canvas Width="{Binding $parent[Window].Bounds.Width}" Height="20" />
<!--Buttons-->
<Grid Name="ToolbarButtons" Width="{Binding $parent[Window].Bounds.Width}"
ColumnDefinitions="*,20,20,20">
<Button Name="MinimizeAppButton" Grid.Column="2" Width="20"
Height="20" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"
Padding="0">
-
</Button>
<Button Name="CloseAppButton" Grid.Column="3" Width="20" Height="20"
FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Padding="0">
X
</Button>
</Grid>
</Canvas>
<Grid Grid.Row="1" Name="Body" Margin="8">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- A label with the app name and version -->
<Label Name="Title" Grid.Row="1" Margin="0" FontSize="48" Height="100" HorizontalContentAlignment="Center"
VerticalContentAlignment="Center" Content="Welcome to AutoDraw"/>
<!-- A button to install the app -->
<Button Grid.Row="2" Name="InstallButton" Content="Install v2.1" Margin="0,50,0,0"
HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" HorizontalContentAlignment="Center" Width="200" Height="40"/>
<Button Grid.Row="4" IsVisible="False" Name="UpdateButton" Content="Update" Margin="0,50,0,0"
HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" HorizontalContentAlignment="Center" Width="200" Height="40"/>
<Button Grid.Row="6" IsVisible="False" Name="UninstallButton" Content="Uninstall" Margin="0,50,0,0"
HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" HorizontalContentAlignment="Center" Width="200" Height="40"/>
</Grid>
</Grid>
</Window>