internal static void returntologin() { ExtendedSplash extendedSplash = new ExtendedSplash(df.SplashScreen, bbb); Window.Current.Content = extendedSplash; Window.Current.Activate(); }
protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = false; } #endif globale = e; Messenger.Default.Register<GoToPageMessage>(this, NavigateToPage); if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.ViewManagement.StatusBar")) { //do something var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); statusBar.BackgroundColor = Windows.UI.Colors.DarkGreen; statusBar.BackgroundOpacity = 1; } if (e.PreviousExecutionState != ApplicationExecutionState.Running) { bool loadState = (e.PreviousExecutionState == ApplicationExecutionState.Terminated); df = e; bbb = loadState; ExtendedSplash extendedSplash = new ExtendedSplash(e.SplashScreen, loadState); Window.Current.Content = extendedSplash; } // Ensure the current window is active Window.Current.Activate(); InstallVoiceCommands(); }