From 3d24222feed214969d0b1b282209ff4b7c0f7b33 Mon Sep 17 00:00:00 2001 From: Nikos Kastellanos Date: Sat, 21 Feb 2026 16:38:25 +0200 Subject: [PATCH] cleanupUAPXamlTemplate --- .../Multiplatform.NetFramework/UWPXaml/App.xaml.cs | 2 +- .../UWPXaml/Game.vstemplate | 8 ++++---- .../ProjectTemplates/UWPXaml.UAP/App.xaml.cs | 10 ---------- .../ProjectTemplates/UWPXaml.UAP/Game.vstemplate | 6 +++--- .../ProjectTemplates/UWPXaml.UAP/MainPage.xaml.cs | 11 ----------- 5 files changed, 8 insertions(+), 29 deletions(-) diff --git a/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/App.xaml.cs b/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/App.xaml.cs index 911c4314fa..5f33ebec96 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/App.xaml.cs +++ b/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/App.xaml.cs @@ -83,7 +83,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e) // Place the frame in the current Window Window.Current.Content = rootFrame; } - + if (e.PrelaunchActivated == false) { if (rootFrame.Content == null) diff --git a/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/Game.vstemplate b/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/Game.vstemplate index ad44eefd66..1b64bd8c4b 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/Game.vstemplate +++ b/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetFramework/UWPXaml/Game.vstemplate @@ -21,14 +21,14 @@ - + App.xaml App.xaml.cs MainPage.xaml MainPage.xaml.cs Package.appxmanifest Application_TemporaryKey.pfx - + LockScreenLogo.scale-200.png SplashScreen.scale-200.png @@ -38,12 +38,12 @@ StoreLogo.png Wide310x150Logo.scale-200.png - + AssemblyInfo.cs Default.rd.xml - + diff --git a/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/App.xaml.cs b/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/App.xaml.cs index d54319587b..a6025432d6 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/App.xaml.cs +++ b/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/App.xaml.cs @@ -1,19 +1,9 @@ using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; -using Windows.Foundation; -using Windows.Foundation.Collections; using Windows.UI.ViewManagement; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace $safeprojectname$ diff --git a/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/Game.vstemplate b/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/Game.vstemplate index fab6bc3938..9905057806 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/Game.vstemplate +++ b/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/Game.vstemplate @@ -29,7 +29,7 @@ - + App.xaml App.xaml.cs MainPage.xaml @@ -51,12 +51,12 @@ StoreLogo.png Wide310x150Logo.scale-200.png - + AssemblyInfo.cs Default.rd.xml - + diff --git a/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/MainPage.xaml.cs b/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/MainPage.xaml.cs index 742351ad5c..c7e90fcf7f 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/MainPage.xaml.cs +++ b/Templates/VisualStudio2022/ProjectTemplates/UWPXaml.UAP/MainPage.xaml.cs @@ -1,17 +1,6 @@ using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using Windows.Foundation; -using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; -using Windows.UI.Xaml.Navigation; // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409