예제 #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);
        }
예제 #2
0
        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;
        }
예제 #3
0
 private void NotificationsLableClicked(object sender, System.Windows.RoutedEventArgs e)
 {
     ProfileFrame.Navigate(this.notificationsPage);
 }
예제 #4
0
 private void ProfileLableClicked(object sender, System.Windows.RoutedEventArgs e)
 {
     ProfileFrame.Navigate(this.profilePage);
 }