-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
132 lines (115 loc) · 5.74 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<Window x:Class="FastFood.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:FastFood"
mc:Ignorable="d"
Title="MainWindow"
WindowStyle="None"
ResizeMode="NoResize"
Height="650" Width="1000"
WindowStartupLocation="CenterScreen"
WindowState="Maximized"
Background="Transparent"
AllowsTransparency="True">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0"
Background="{DynamicResource PrimaryBackground}"
CornerRadius="10 10 0 0"
BorderBrush="{DynamicResource PrimaryBorderColor}"
BorderThickness="0 0 0 1">
<Grid Margin="10 0 10 0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<Border x:Name="brDragable"
MouseDown="brDragable_MouseDown"
Grid.Column="0"
Background="{DynamicResource PrimaryBackground}"
Cursor="Hand">
</Border>
<StackPanel Grid.Column="1"
Orientation="Horizontal">
<Button x:Name="btnMinimize" Click="btnMinimize_Click" Style="{DynamicResource MinimizedButton}"/>
<Button x:Name="btnMaximize" Click="btnMaximize_Click" Style="{DynamicResource MaximazedButton}"/>
<Button x:Name="btnClose" Click="btnClose_Click" Style="{DynamicResource CloseButton}"/>
</StackPanel>
</Grid>
</Border>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0"
Background="{DynamicResource PrimaryBackground}"
CornerRadius="0 0 0 10">
<StackPanel Margin="0 10 0 0">
<RadioButton x:Name="rbAllItems"
Style="{DynamicResource MenuButton}"
Content="All Products"
Click="rb_AllItems_Click"
Tag="{DynamicResource dashboard}"/>
<RadioButton x:Name="rbFood"
Style="{DynamicResource MenuButton}"
Content="Food"
Click="rb_Food_Click"
Tag="{DynamicResource food}"/>
<RadioButton x:Name="rbColdDrinks"
Style="{DynamicResource MenuButton}"
Content="Cold Drinks"
Click="rbColdDrinks_Click"
Tag="{DynamicResource coldrink}"/>
<RadioButton x:Name="rbHotDrinks"
Style="{DynamicResource MenuButton}"
Content="Hot Drinks"
Click="rbHotDrinks_Click"
Tag="{DynamicResource hotdrink}"/>
<RadioButton x:Name="rbDisserts"
Style="{DynamicResource MenuButton}"
Content="Disserts"
Click="rbDisserts_Click"
Tag="{DynamicResource dissert}"/>
<Label Height="50"/>
<RadioButton x:Name="rbCreateProducts"
Style="{DynamicResource MenuButton}"
Content="Create Products"
FontSize="15"
Click="rbCreateProduct_Click"
Tag="{DynamicResource create}"/>
<Label Height="50"/>
<RadioButton x:Name="rbLogoutProducts"
Style="{DynamicResource MenuButton}"
Content="Logout"
FontSize="15"
Click="rbLogout_Click"/>
</StackPanel>
</Border>
<Border Grid.Column="1"
Background="{DynamicResource SecondaryBackground}"
CornerRadius="0 0 10 0">
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="350"/>
</Grid.ColumnDefinitions>
<Frame Grid.Column="0"
x:Name="PageNavigator"
NavigationUIVisibility="Hidden"/>
<Border Grid.Column="1" x:Name="drResult">
<Border CornerRadius="10" Grid.Row="0" Margin="0 15 5 0">
<Frame x:Name="PageResultNavigator"
NavigationUIVisibility="Hidden" HorizontalAlignment="Right" Width="345"/>
</Border>
</Border>
</Grid>
</Border>
</Grid>
</Grid>
</Window>