-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainSystem.xaml.cs
More file actions
94 lines (82 loc) · 2.86 KB
/
MainSystem.xaml.cs
File metadata and controls
94 lines (82 loc) · 2.86 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
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ModernWpf.Controls;
namespace OrbitOS
{
/// <summary>
/// Interaction logic for MainSystem.xaml
/// </summary>
public partial class MainSystem : Window
{
public MainSystem()
{
InitializeComponent();
}
private void NavigationPage_Loaded(object sender, RoutedEventArgs e)
{
contentFrame.Navigate(typeof(Pages.HomePage));
}
private void NavigationPage_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
{
if (args.IsSettingsSelected)
{
contentFrame.Navigate(typeof(Pages.SettingsPage));
}
else
{
var NavselectedItem = (NavigationViewItem)args.SelectedItem;
string selectedItem = NavselectedItem.Tag as string;
if (selectedItem != null)
{
if (selectedItem == "HomePage")
{
contentFrame.Navigate(typeof(Pages.HomePage));
}
else if (selectedItem == "ArithCalculator")
{
contentFrame.Navigate(typeof(Pages.ArithCalculator));
}
else if (selectedItem == "TrigCalculator")
{
contentFrame.Navigate(typeof(Pages.TrigCalculator));
}
else if (selectedItem == "To-Do List")
{
contentFrame.Navigate(typeof(Pages.ToDoPage));
}
else if (selectedItem == "Calendar")
{
contentFrame.Navigate(typeof(Pages.CalendarPage));
}
else if (selectedItem == "Web Browser")
{
contentFrame.Navigate(typeof(Pages.BrowserPage));
}
else if (selectedItem == "UpdatesPage")
{
contentFrame.Navigate(typeof(Pages.UpdatesPage));
}
else if (selectedItem == "HelpPage")
{
contentFrame.Navigate(typeof(Pages.HelpPage));
}
else if (selectedItem == "AboutPage")
{
contentFrame.Navigate(typeof(Pages.AboutPage));
}
}
}
}
}
}