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