-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
96 lines (85 loc) · 3.59 KB
/
MainWindow.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Window x:Class="Countries.MainWindow"
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:Countries"
xmlns:viewmodels="clr-namespace:Countries.ViewModels"
mc:Ignorable="d"
Height="500"
Width="1000"
Background="#36393F"
WindowStyle="None"
AllowsTransparency="True"
ResizeMode="CanResizeWithGrip">
<Window.DataContext>
<viewmodels:MainViewModel />
</Window.DataContext>
<Grid>
<!-- Divide in two rows-->
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition />
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<!-- Top menu (TITLE, MINIM, MAX, CLOUSE) -->
<Border Grid.ColumnSpan="2"
Background="#252525"
MouseDown="Border_MouseDown">
<Grid HorizontalAlignment="Stretch">
<Label Content="Country Verify - Software"
Foreground="Gray"
FontWeight="SemiBold" />
<StackPanel HorizontalAlignment="Right"
Orientation="Horizontal">
<!-- Minimize button -->
<Button Width="20"
Height="20"
Content="_"
Background="Transparent"
BorderThickness="0"
Foreground="Gray"
FontWeight="Bold"
Margin="2,2,2,3"
x:Name="btn_MinimazeWindow"
Click="btn_MinimazeWindow_Click" />
<!-- Maximize button -->
<Button Width="20"
Height="20"
Content="☐"
Background="Transparent"
BorderThickness="0"
Foreground="Gray"
FontWeight="Bold"
Margin="2"
x:Name="btn_MaximizeWindow"
Click="btn_MaximizeWindow_Click" />
<!-- Close button -->
<Button Width="20"
Height="20"
Content="✕"
Background="Transparent"
BorderThickness="0"
Foreground="Gray"
FontWeight="Bold"
Margin="2"
x:Name="btn_ClouseWindow"
Click="btn_ClouseWindow_Click" />
</StackPanel>
</Grid>
</Border>
<!-- Footer Elemente -->
<Border Background="#252525" Grid.Row="2" Grid.ColumnSpan="2">
<Grid HorizontalAlignment="Stretch">
<Label Content="v1.0.0" Foreground="LightGray"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Label Content="Last update from API" Foreground="Gray"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Window>