diff --git a/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs b/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs index 334f4a50b..4d7bea4fd 100644 --- a/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs +++ b/Installers/VS2019/HandyControl_VS2019/Properties/AssemblyInfo.cs @@ -10,5 +10,5 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] -[assembly: AssemblyVersion("2.5.3.2")] -[assembly: AssemblyFileVersion("2.5.3.2")] +[assembly: AssemblyVersion("3.0.0.0")] +[assembly: AssemblyFileVersion("3.0.0.0")] diff --git a/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest b/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest index 346a08d6a..f9c7d50c0 100644 --- a/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest +++ b/Installers/VS2019/HandyControl_VS2019/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + HandyControls for VS2019 Contains some simple and commonly used WPF controls based on HandyControl This VSIX Project will help people initialize a HandyControls project. diff --git a/Installers/VS2019/WpfApp/DesignTimeResources.xaml b/Installers/VS2019/WpfApp/DesignTimeResources.xaml new file mode 100644 index 000000000..813803dee --- /dev/null +++ b/Installers/VS2019/WpfApp/DesignTimeResources.xaml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Installers/VS2019/WpfApp/ProjectTemplate.csproj b/Installers/VS2019/WpfApp/ProjectTemplate.csproj index 1e03c4855..a409b2b14 100644 --- a/Installers/VS2019/WpfApp/ProjectTemplate.csproj +++ b/Installers/VS2019/WpfApp/ProjectTemplate.csproj @@ -35,7 +35,7 @@ - 2.5.3.2 + 3.0.0 @@ -69,6 +69,11 @@ Code + + MSBuild:Compile + Designer + true + \ No newline at end of file diff --git a/Installers/VS2019/WpfApp/WpfApp.csproj b/Installers/VS2019/WpfApp/WpfApp.csproj index 7cd033599..04142b099 100644 --- a/Installers/VS2019/WpfApp/WpfApp.csproj +++ b/Installers/VS2019/WpfApp/WpfApp.csproj @@ -86,6 +86,12 @@ Designer + + + MSBuild:Compile + Designer + + \ No newline at end of file diff --git a/Installers/VS2019/WpfApp/WpfApp.vstemplate b/Installers/VS2019/WpfApp/WpfApp.vstemplate index 2e8ad3b7f..8e531fe5d 100644 --- a/Installers/VS2019/WpfApp/WpfApp.vstemplate +++ b/Installers/VS2019/WpfApp/WpfApp.vstemplate @@ -1,17 +1,17 @@  - HandyControl WPF App(.NET Framework) - Creates a HandyControl WPF App(.NET Framework) + HandyControl App (.Net Framework) + A project template for creating a HandyControl WPF App with .NET Framework icon.ico CSharp 4.0 - 4.7.2 38e0a2df-5858-4bde-b373-7c50bc982906 true HandyControlProject true csharp + XAML windows desktop HandyControl @@ -19,6 +19,7 @@ AssemblyInfo.cs + DesignTimeResources.xaml App.xaml App.xaml.cs MainWindow.xaml diff --git a/Installers/VS2019/WpfAppMVVMPrism/App.xaml b/Installers/VS2019/WpfAppMVVMPrism/App.xaml index c9909c4fd..a557d16f8 100644 --- a/Installers/VS2019/WpfAppMVVMPrism/App.xaml +++ b/Installers/VS2019/WpfAppMVVMPrism/App.xaml @@ -1,7 +1,6 @@ - + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> @@ -10,4 +9,4 @@ - + diff --git a/Installers/VS2019/WpfAppMVVMPrism/App.xaml.cs b/Installers/VS2019/WpfAppMVVMPrism/App.xaml.cs index 745b200ac..92bb1dab7 100644 --- a/Installers/VS2019/WpfAppMVVMPrism/App.xaml.cs +++ b/Installers/VS2019/WpfAppMVVMPrism/App.xaml.cs @@ -3,22 +3,19 @@ using HandyControl.Tools; using System.Windows; using System; -using Prism.Ioc; -using $safeprojectname$.Views; namespace $safeprojectname$ { - public partial class App - { - protected override Window CreateShell() - { - return Container.Resolve(); - } + public partial class App : Application +{ - protected override void RegisterTypes(IContainerRegistry containerRegistry) - { + protected override void OnStartup(StartupEventArgs e) + { + base.OnStartup(e); + var boot = new Bootstrapper(); + boot.Run(); + } - } - internal void UpdateSkin(SkinType skin) + internal void UpdateSkin(SkinType skin) { SharedResourceDictionary.SharedDictionaries.Clear(); Resources.MergedDictionaries.Add(ResourceHelper.GetSkin(skin)); diff --git a/Installers/VS2019/WpfAppMVVMPrism/Bootstrapper.cs b/Installers/VS2019/WpfAppMVVMPrism/Bootstrapper.cs new file mode 100644 index 000000000..8e967a4de --- /dev/null +++ b/Installers/VS2019/WpfAppMVVMPrism/Bootstrapper.cs @@ -0,0 +1,19 @@ +using Prism.DryIoc; +using Prism.Ioc; +using System.Windows; +using $safeprojectname$.Views; +namespace $safeprojectname$ +{ + public class Bootstrapper : PrismBootstrapper + { + protected override DependencyObject CreateShell() + { + return Container.Resolve(); + } + + protected override void RegisterTypes(IContainerRegistry containerRegistry) + { + + } + } +} diff --git a/Installers/VS2019/WpfAppMVVMPrism/DesignTimeResources.xaml b/Installers/VS2019/WpfAppMVVMPrism/DesignTimeResources.xaml new file mode 100644 index 000000000..813803dee --- /dev/null +++ b/Installers/VS2019/WpfAppMVVMPrism/DesignTimeResources.xaml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Installers/VS2019/WpfAppMVVMPrism/MainWindowViewModel.cs b/Installers/VS2019/WpfAppMVVMPrism/MainWindowViewModel.cs index c55ba0e61..97ff79b75 100644 --- a/Installers/VS2019/WpfAppMVVMPrism/MainWindowViewModel.cs +++ b/Installers/VS2019/WpfAppMVVMPrism/MainWindowViewModel.cs @@ -3,7 +3,7 @@ namespace $safeprojectname$.ViewModels { public class MainWindowViewModel : BindableBase { - private string _title = "Prism Application"; + private string _title = "HandyControl Application"; public string Title { get { return _title; } diff --git a/Installers/VS2019/WpfAppMVVMPrism/ProjectTemplate.csproj b/Installers/VS2019/WpfAppMVVMPrism/ProjectTemplate.csproj index d330776b5..cd31e3232 100644 --- a/Installers/VS2019/WpfAppMVVMPrism/ProjectTemplate.csproj +++ b/Installers/VS2019/WpfAppMVVMPrism/ProjectTemplate.csproj @@ -35,9 +35,9 @@ - 2.5.3.2 + 3.0.0 - + @@ -54,6 +54,7 @@ Designer + MSBuild:Compile Designer @@ -71,6 +72,11 @@ Code + + MSBuild:Compile + Designer + true + \ No newline at end of file diff --git a/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.csproj b/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.csproj index 23c5bbb37..de67bbddf 100644 --- a/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.csproj +++ b/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.csproj @@ -64,6 +64,7 @@ MainWindow.xaml + @@ -88,6 +89,12 @@ + + + MSBuild:Compile + Designer + + \ No newline at end of file diff --git a/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.vstemplate b/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.vstemplate index e37759233..5d5ffebc9 100644 --- a/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.vstemplate +++ b/Installers/VS2019/WpfAppMVVMPrism/WpfAppMVVMPrism.vstemplate @@ -1,17 +1,17 @@  - HandyControl WPF App(.NET Framework - Prism) - Creates a HandyControl WPF App with Prism DryIoc MVVM Pattern(.NET Framework) + HandyControl App (.NET Framework - MVVM) + A project template for creating a HandyControl WPF App with .NET Framework and Prism MVVM Pattern icon.ico CSharp 4.5 - 4.7.2 feb74271-5261-4730-9af2-8fa899f989ce true HandyControlProject true csharp + XAML windows desktop HandyControl @@ -19,11 +19,13 @@ AssemblyInfo.cs + DesignTimeResources.xaml MainWindow.xaml MainWindow.xaml.cs App.xaml App.xaml.cs MainWindowViewModel.cs + Bootstrapper.cs \ No newline at end of file diff --git a/Installers/VS2019/WpfCoreApp/DesignTimeResources.xaml b/Installers/VS2019/WpfCoreApp/DesignTimeResources.xaml new file mode 100644 index 000000000..813803dee --- /dev/null +++ b/Installers/VS2019/WpfCoreApp/DesignTimeResources.xaml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Installers/VS2019/WpfCoreApp/ProjectTemplate.csproj b/Installers/VS2019/WpfCoreApp/ProjectTemplate.csproj index 4bf6d0895..1306bcce5 100644 --- a/Installers/VS2019/WpfCoreApp/ProjectTemplate.csproj +++ b/Installers/VS2019/WpfCoreApp/ProjectTemplate.csproj @@ -1,7 +1,7 @@  WinExe - netcoreapp3.0 + net5.0-windows true $safeprojectname$ $safeprojectname$ @@ -19,6 +19,13 @@ TRACE;Core - + + + + + MSBuild:Compile + Designer + true + \ No newline at end of file diff --git a/Installers/VS2019/WpfCoreApp/WpfCoreApp.csproj b/Installers/VS2019/WpfCoreApp/WpfCoreApp.csproj index e46a55779..70940bd34 100644 --- a/Installers/VS2019/WpfCoreApp/WpfCoreApp.csproj +++ b/Installers/VS2019/WpfCoreApp/WpfCoreApp.csproj @@ -86,6 +86,12 @@ Designer + + + MSBuild:Compile + Designer + +