├── Icons
├── img_contact.png
├── img_home.png
├── img_map.png
├── img_message.png
├── img_setting.png
└── img_signout.png
├── Images
└── Navigation Drawer Image.jpg
├── LICENSE
├── Navigation Drawer App - Preview Image.png
├── Navigation Drawer App.rar
├── README.md
└── Source
├── App.xaml
├── App.xaml.cs
├── MainWindow.xaml
└── MainWindow.xaml.cs
/Icons/img_contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Icons/img_contact.png
--------------------------------------------------------------------------------
/Icons/img_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Icons/img_home.png
--------------------------------------------------------------------------------
/Icons/img_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Icons/img_map.png
--------------------------------------------------------------------------------
/Icons/img_message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Icons/img_message.png
--------------------------------------------------------------------------------
/Icons/img_setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Icons/img_setting.png
--------------------------------------------------------------------------------
/Icons/img_signout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Icons/img_signout.png
--------------------------------------------------------------------------------
/Images/Navigation Drawer Image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Images/Navigation Drawer Image.jpg
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Arun Mutharasu
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Navigation Drawer App - Preview Image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Navigation Drawer App - Preview Image.png
--------------------------------------------------------------------------------
/Navigation Drawer App.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CSharpDesignPro/Navigation-Drawer-Sidebar-Menu-in-WPF/ebff9360e7483257504e4393fa2287b0cbd3049a/Navigation Drawer App.rar
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WPF - Navigation Drawer / Sidebar Menu
2 |
3 |
4 | How to design a Navigation Drawer / Sidebar Menu in WPF - https://youtu.be/fzBcXicj2G8
5 |
6 | 
7 |
8 | Icon Credits : https://icons8.com/icons
9 |
10 |
11 | GitHub Account : https://github.com/CSharpDesignPro
12 |
--------------------------------------------------------------------------------
/Source/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Source/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace Navigation_Drawer_App
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
30 |
31 |
32 |
50 |
51 |
52 |
53 |
71 |
72 |
73 |
74 |
75 |
76 |
111 |
112 |
113 |
114 |
115 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
248 |
249 |
250 |
251 |
252 |
253 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
273 |
274 |
275 |
276 |
277 |
278 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
344 |
345 |
346 |
347 |
350 |
351 |
353 |
354 |
357 |
358 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
381 |
382 |
384 |
385 |
388 |
389 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
412 |
413 |
415 |
416 |
419 |
420 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
443 |
444 |
446 |
447 |
450 |
451 |
454 |
455 |
456 |
457 |
458 |
459 |
460 |
461 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
474 |
475 |
477 |
478 |
481 |
482 |
485 |
486 |
487 |
488 |
489 |
490 |
491 |
492 |
495 |
496 |
497 |
498 |
499 |
500 |
501 |
502 |
505 |
506 |
508 |
509 |
512 |
513 |
516 |
517 |
518 |
519 |
520 |
521 |
522 |
523 |
526 |
527 |
528 |
529 |
530 |
531 |
532 |
533 |
534 |
535 |
586 |
587 |
588 |
589 |
590 |
591 |
592 |
593 |
594 |
595 |
596 |
597 |
598 |
599 |
600 |
601 |
--------------------------------------------------------------------------------
/Source/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace Navigation_Drawer_App
17 | {
18 | ///
19 | /// Interaction logic for MainWindow.xaml
20 | ///
21 | public partial class MainWindow : Window
22 | {
23 | public MainWindow()
24 | {
25 | InitializeComponent();
26 | }
27 |
28 | private void ListViewItem_MouseEnter(object sender, MouseEventArgs e)
29 | {
30 | // Set tooltip visibility
31 |
32 | if(Tg_Btn.IsChecked == true)
33 | {
34 | tt_home.Visibility = Visibility.Collapsed;
35 | tt_contacts.Visibility = Visibility.Collapsed;
36 | tt_messages.Visibility = Visibility.Collapsed;
37 | tt_maps.Visibility = Visibility.Collapsed;
38 | tt_settings.Visibility = Visibility.Collapsed;
39 | tt_signout.Visibility = Visibility.Collapsed;
40 | }
41 | else
42 | {
43 | tt_home.Visibility = Visibility.Visible;
44 | tt_contacts.Visibility = Visibility.Visible;
45 | tt_messages.Visibility = Visibility.Visible;
46 | tt_maps.Visibility = Visibility.Visible;
47 | tt_settings.Visibility = Visibility.Visible;
48 | tt_signout.Visibility = Visibility.Visible;
49 | }
50 | }
51 |
52 | private void Tg_Btn_Unchecked(object sender, RoutedEventArgs e)
53 | {
54 | img_bg.Opacity = 1;
55 | }
56 |
57 | private void Tg_Btn_Checked(object sender, RoutedEventArgs e)
58 | {
59 | img_bg.Opacity = 0.3;
60 | }
61 |
62 | private void BG_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
63 | {
64 | Tg_Btn.IsChecked = false;
65 | }
66 |
67 | private void CloseBtn_Click(object sender, RoutedEventArgs e)
68 | {
69 | Close();
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------