Beispiel #1
0
        public Dash(Shared.Profile profile)
        {
            InitializeComponent();
            this.profilePage       = new Pages.Profile(profile);
            this.notificationsPage = new Pages.Notifications();
            (Application.Current.MainWindow as MainWindow).Notifications.RegisterNotificationsPage(notificationsPage);

            ProfileFrame.Navigate(this.profilePage);
        }
        public MainPage()
        {
            this.InitializeComponent();

            var currentView = SystemNavigationManager.GetForCurrentView();

            currentView.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
            currentView.BackRequested += MainPage_BackRequested;

            MainFrame.Navigate(typeof(MainpagePage));
            ProfileFrame.Navigate(typeof(MyProfilePage));

            MainFrame.Navigated += MainFrame_Navigated;
        }
Beispiel #3
0
 private void NotificationsLableClicked(object sender, System.Windows.RoutedEventArgs e)
 {
     ProfileFrame.Navigate(this.notificationsPage);
 }
Beispiel #4
0
 private void ProfileLableClicked(object sender, System.Windows.RoutedEventArgs e)
 {
     ProfileFrame.Navigate(this.profilePage);
 }