コード例 #1
0
        public static void ShowHomePage(object sender)
        {
            if (App.homePage == null)
                App.homePage = new HomePage();

            if (sender is Metro_Tables.Controls.TablesControl) {
                // Deactivate top control option and run animation
                // to translate and shrink control to it's
                // normal (wait) state
                App.homePage.MinimizeTopControl(null);
            }
            else { // This includes Welcome page
                App.NavigationWindow.CurrentPage.NavigationService.Navigate(App.homePage);
                App.currentPage = App.homePage;
            }
        }
コード例 #2
0
 private static void LoadApplication()
 {
     App.welcomePage.ChangeStatus("Loading home screen . . .");
     Current.Dispatcher.InvokeAsync(() => {
         App.homePage = new HomePage();
         if (App.OnLoaded != null) {
             App.OnLoaded(null, App.CurrentPage);
         }
     });
 }