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;
            }
        }
 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);
         }
     });
 }