コード例 #1
0
        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();
            });
        }
コード例 #2
0
        private static void Main()
        {
            var exclusiveViewApplicationSource = new AppViewSource();

            CoreApplication.Run(exclusiveViewApplicationSource);
        }