private async void MainPage_Loaded(object sender, RoutedEventArgs e) { if (this.viewInmmersive != null) { return; } this.appViewSource = new AppViewSource(this.application); this.viewInmmersive = CoreApplication.CreateNewView(this.appViewSource); await this.viewInmmersive.Dispatcher.RunAsync(() => { this.application.Initialize(); }); }
private static void Main() { var exclusiveViewApplicationSource = new AppViewSource(); CoreApplication.Run(exclusiveViewApplicationSource); }