-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathMainWindow.xaml
193 lines (123 loc) · 5.91 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!--/// <Summary>
/// Author : R. Arun Mutharasu
/// Created :25-08-2022
/// YouTube Channel : C# Design Pro
/// </Summary>-->
<Window x:Class="Page_Navigation_App.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:vm="clr-namespace:Page_Navigation_App.ViewModel"
xmlns:Menu="clr-namespace:Page_Navigation_App.Utilities"
mc:Ignorable="d"
Title="MainWindow"
Height="600"
Width="850"
AllowsTransparency="True"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
Background="Transparent">
<Window.DataContext>
<vm:NavigationVM />
</Window.DataContext>
<Grid>
<!--// Window Border //-->
<Border Background="#212529"
CornerRadius="20" />
<Grid>
<!--// Base Grid //-->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="228" />
<ColumnDefinition Width="622" />
</Grid.ColumnDefinitions>
<!--// Navigation Panel //-->
<Grid HorizontalAlignment="Left"
Width="228">
<Border Background="#272B2F"
CornerRadius="20,0,0,20" />
<StackPanel Height="400"
Width="228">
<!--// Home //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding HomeCommand}"
IsChecked="True">
<Grid>
<Image Source="Images/img_home.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Home"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
<!--// Customer //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding CustomersCommand}">
<Grid>
<Image Source="Images/img_customer.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Customer"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
<!--// Products //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding ProductsCommand}">
<Grid>
<Image Source="Images/img_product.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Products"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
<!--// Orders //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding OrdersCommand}">
<Grid>
<Image Source="Images/img_order.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Orders"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
<!--// Transactions //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding TransactionsCommand}">
<Grid>
<Image Source="Images/img_transaction.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Transactions"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
<!--// Shipments //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding ShipmentsCommand}">
<Grid>
<Image Source="Images/img_shipment.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Shipments"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
<!--// Settings //-->
<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding SettingsCommand}">
<Grid>
<Image Source="Images/img_setting.png"
Style="{StaticResource Image_Style}" />
<TextBlock Text="Settings"
Style="{StaticResource Text_Style}" />
</Grid>
</Menu:Btn>
</StackPanel>
</Grid>
<Grid Grid.Column="1">
<ContentControl x:Name="Pages"
Content="{Binding CurrentView}" />
</Grid>
</Grid>
<Button x:Name="CloseApp"
Style="{StaticResource ExitApp}"
Click="CloseApp_Click" />
</Grid>
</Window>