From b65863519ddb75c704fce75f551d58ecc9098f26 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Fri, 14 Jan 2022 13:14:11 +0330 Subject: [PATCH] return vsix --- extension/visual studio/HandyControl.sln | 101 ++++++++++ .../HandyControl.csproj} | 54 +++-- .../HandyControl/HandyControlPackage.cs | 53 +++++ .../License.txt | 0 .../HandyControl/Properties/AssemblyInfo.cs | 33 ++++ .../icon_100_100.png | Bin .../icon_300_300.png | Bin .../source.extension.vsixmanifest | 46 +++++ .../HandyControl_VS_Templates.sln | 43 ---- .../Properties/AssemblyInfo.cs | 14 -- .../source.extension.vsixmanifest | 36 ---- extension/visual studio/WpfApp/App.xaml | 5 +- extension/visual studio/WpfApp/App.xaml.cs | 24 ++- .../WpfApp/DesignTimeResources.xaml | 6 + .../visual studio/WpfApp/MainWindow.xaml | 185 ++++++++++++++---- .../visual studio/WpfApp/MainWindow.xaml.cs | 50 ++++- .../WpfApp/ProjectTemplate.csproj | 7 +- .../WpfApp/Properties/AssemblyInfo.cs | 8 +- extension/visual studio/WpfApp/WpfApp.csproj | 9 + .../visual studio/WpfApp/WpfApp.vstemplate | 54 ++--- .../visual studio/WpfApp/packages.config | 4 + .../visual studio/WpfAppMVVMPrism/App.xaml | 13 ++ .../visual studio/WpfAppMVVMPrism/App.xaml.cs | 31 +++ .../WpfAppMVVMPrism/AssemblyInfo.cs | 16 ++ .../WpfAppMVVMPrism/Bootstrapper.cs | 19 ++ .../WpfAppMVVMPrism/DesignTimeResources.xaml | 6 + .../WpfAppMVVMPrism/MainWindow.xaml | 71 +++++++ .../WpfAppMVVMPrism/MainWindow.xaml.cs | 58 ++++++ .../WpfAppMVVMPrism/MainWindowViewModel.cs | 18 ++ .../WpfAppMVVMPrism/ProjectTemplate.csproj | 79 ++++++++ .../Properties/AssemblyInfo.cs | 36 ++++ .../WpfAppMVVMPrism/WpfAppMVVMPrism.csproj | 100 ++++++++++ .../WpfAppMVVMPrism.vstemplate | 33 ++++ .../visual studio/WpfAppMVVMPrism/icon.ico | Bin 0 -> 110324 bytes .../visual studio/WpfAppMVVMStylet/App.xaml | 19 ++ .../WpfAppMVVMStylet/App.xaml.cs | 7 + .../WpfAppMVVMStylet/AssemblyInfo.cs | 17 ++ .../WpfAppMVVMStylet/Bootstrapper.cs | 11 ++ .../WpfAppMVVMStylet/DesignTimeResources.xaml | 6 + .../WpfAppMVVMStylet/ProjectTemplate.csproj | 78 ++++++++ .../Properties/AssemblyInfo.cs | 36 ++++ .../WpfAppMVVMStylet/RootView.xaml | 20 ++ .../WpfAppMVVMStylet/RootView.xaml.cs | 14 ++ .../WpfAppMVVMStylet/RootViewModel.cs | 19 ++ .../WpfAppMVVMStylet/WpfAppMVVMStylet.csproj | 104 ++++++++++ .../WpfAppMVVMStylet.vstemplate | 34 ++++ .../visual studio/WpfAppMVVMStylet/icon.ico | Bin 0 -> 110324 bytes extension/visual studio/WpfCoreApp/App.xaml | 5 +- .../visual studio/WpfCoreApp/App.xaml.cs | 24 ++- .../WpfCoreApp/DesignTimeResources.xaml | 6 + .../visual studio/WpfCoreApp/MainWindow.xaml | 73 +++++-- .../WpfCoreApp/MainWindow.xaml.cs | 50 ++++- .../WpfCoreApp/ProjectTemplate.csproj | 23 ++- .../WpfCoreApp/Properties/AssemblyInfo.cs | 8 +- .../WpfCoreApp/WpfCoreApp.csproj | 9 + .../WpfCoreApp/WpfCoreApp.vstemplate | 52 ++--- .../visual studio/WpfCoreAppPrism/App.xaml | 13 ++ .../visual studio/WpfCoreAppPrism/App.xaml.cs | 31 +++ .../WpfCoreAppPrism/AssemblyInfo.cs | 3 + .../WpfCoreAppPrism/Bootstrapper.cs | 19 ++ .../WpfCoreAppPrism/DesignTimeResources.xaml | 6 + .../WpfCoreAppPrism/MainWindow.xaml | 71 +++++++ .../WpfCoreAppPrism/MainWindow.xaml.cs | 58 ++++++ .../WpfCoreAppPrism/MainWindowViewModel.cs | 18 ++ .../WpfCoreAppPrism/ProjectTemplate.csproj | 25 +++ .../Properties/AssemblyInfo.cs | 36 ++++ .../WpfCoreAppPrism/WpfCoreAppPrism.csproj | 107 ++++++++++ .../WpfCoreAppPrism.vstemplate | 32 +++ .../visual studio/WpfCoreAppPrism/icon.ico | Bin 0 -> 110324 bytes .../visual studio/WpfCoreAppStylet/App.xaml | 19 ++ .../WpfCoreAppStylet/App.xaml.cs | 7 + .../WpfCoreAppStylet/AssemblyInfo.cs | 3 + .../WpfCoreAppStylet/Bootstrapper.cs | 11 ++ .../WpfCoreAppStylet/DesignTimeResources.xaml | 6 + .../WpfCoreAppStylet/ProjectTemplate.csproj | 24 +++ .../Properties/AssemblyInfo.cs | 36 ++++ .../WpfCoreAppStylet/RootView.xaml | 16 ++ .../WpfCoreAppStylet/RootView.xaml.cs | 14 ++ .../WpfCoreAppStylet/RootViewModel.cs | 19 ++ .../WpfCoreAppStylet/WpfCoreAppStylet.csproj | 104 ++++++++++ .../WpfCoreAppStylet.vstemplate | 33 ++++ .../visual studio/WpfCoreAppStylet/icon.ico | Bin 0 -> 110324 bytes 82 files changed, 2293 insertions(+), 245 deletions(-) create mode 100644 extension/visual studio/HandyControl.sln rename extension/visual studio/{HandyControl_VS_Templates/HandyControl_VS_Templates.csproj => HandyControl/HandyControl.csproj} (69%) create mode 100644 extension/visual studio/HandyControl/HandyControlPackage.cs rename extension/visual studio/{HandyControl_VS_Templates => HandyControl}/License.txt (100%) create mode 100644 extension/visual studio/HandyControl/Properties/AssemblyInfo.cs rename extension/visual studio/{HandyControl_VS_Templates => HandyControl}/icon_100_100.png (100%) rename extension/visual studio/{HandyControl_VS_Templates => HandyControl}/icon_300_300.png (100%) create mode 100644 extension/visual studio/HandyControl/source.extension.vsixmanifest delete mode 100644 extension/visual studio/HandyControl_VS_Templates.sln delete mode 100644 extension/visual studio/HandyControl_VS_Templates/Properties/AssemblyInfo.cs delete mode 100644 extension/visual studio/HandyControl_VS_Templates/source.extension.vsixmanifest create mode 100644 extension/visual studio/WpfApp/DesignTimeResources.xaml create mode 100644 extension/visual studio/WpfApp/packages.config create mode 100644 extension/visual studio/WpfAppMVVMPrism/App.xaml create mode 100644 extension/visual studio/WpfAppMVVMPrism/App.xaml.cs create mode 100644 extension/visual studio/WpfAppMVVMPrism/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfAppMVVMPrism/Bootstrapper.cs create mode 100644 extension/visual studio/WpfAppMVVMPrism/DesignTimeResources.xaml create mode 100644 extension/visual studio/WpfAppMVVMPrism/MainWindow.xaml create mode 100644 extension/visual studio/WpfAppMVVMPrism/MainWindow.xaml.cs create mode 100644 extension/visual studio/WpfAppMVVMPrism/MainWindowViewModel.cs create mode 100644 extension/visual studio/WpfAppMVVMPrism/ProjectTemplate.csproj create mode 100644 extension/visual studio/WpfAppMVVMPrism/Properties/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfAppMVVMPrism/WpfAppMVVMPrism.csproj create mode 100644 extension/visual studio/WpfAppMVVMPrism/WpfAppMVVMPrism.vstemplate create mode 100644 extension/visual studio/WpfAppMVVMPrism/icon.ico create mode 100644 extension/visual studio/WpfAppMVVMStylet/App.xaml create mode 100644 extension/visual studio/WpfAppMVVMStylet/App.xaml.cs create mode 100644 extension/visual studio/WpfAppMVVMStylet/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfAppMVVMStylet/Bootstrapper.cs create mode 100644 extension/visual studio/WpfAppMVVMStylet/DesignTimeResources.xaml create mode 100644 extension/visual studio/WpfAppMVVMStylet/ProjectTemplate.csproj create mode 100644 extension/visual studio/WpfAppMVVMStylet/Properties/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfAppMVVMStylet/RootView.xaml create mode 100644 extension/visual studio/WpfAppMVVMStylet/RootView.xaml.cs create mode 100644 extension/visual studio/WpfAppMVVMStylet/RootViewModel.cs create mode 100644 extension/visual studio/WpfAppMVVMStylet/WpfAppMVVMStylet.csproj create mode 100644 extension/visual studio/WpfAppMVVMStylet/WpfAppMVVMStylet.vstemplate create mode 100644 extension/visual studio/WpfAppMVVMStylet/icon.ico create mode 100644 extension/visual studio/WpfCoreApp/DesignTimeResources.xaml create mode 100644 extension/visual studio/WpfCoreAppPrism/App.xaml create mode 100644 extension/visual studio/WpfCoreAppPrism/App.xaml.cs create mode 100644 extension/visual studio/WpfCoreAppPrism/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfCoreAppPrism/Bootstrapper.cs create mode 100644 extension/visual studio/WpfCoreAppPrism/DesignTimeResources.xaml create mode 100644 extension/visual studio/WpfCoreAppPrism/MainWindow.xaml create mode 100644 extension/visual studio/WpfCoreAppPrism/MainWindow.xaml.cs create mode 100644 extension/visual studio/WpfCoreAppPrism/MainWindowViewModel.cs create mode 100644 extension/visual studio/WpfCoreAppPrism/ProjectTemplate.csproj create mode 100644 extension/visual studio/WpfCoreAppPrism/Properties/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfCoreAppPrism/WpfCoreAppPrism.csproj create mode 100644 extension/visual studio/WpfCoreAppPrism/WpfCoreAppPrism.vstemplate create mode 100644 extension/visual studio/WpfCoreAppPrism/icon.ico create mode 100644 extension/visual studio/WpfCoreAppStylet/App.xaml create mode 100644 extension/visual studio/WpfCoreAppStylet/App.xaml.cs create mode 100644 extension/visual studio/WpfCoreAppStylet/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfCoreAppStylet/Bootstrapper.cs create mode 100644 extension/visual studio/WpfCoreAppStylet/DesignTimeResources.xaml create mode 100644 extension/visual studio/WpfCoreAppStylet/ProjectTemplate.csproj create mode 100644 extension/visual studio/WpfCoreAppStylet/Properties/AssemblyInfo.cs create mode 100644 extension/visual studio/WpfCoreAppStylet/RootView.xaml create mode 100644 extension/visual studio/WpfCoreAppStylet/RootView.xaml.cs create mode 100644 extension/visual studio/WpfCoreAppStylet/RootViewModel.cs create mode 100644 extension/visual studio/WpfCoreAppStylet/WpfCoreAppStylet.csproj create mode 100644 extension/visual studio/WpfCoreAppStylet/WpfCoreAppStylet.vstemplate create mode 100644 extension/visual studio/WpfCoreAppStylet/icon.ico diff --git a/extension/visual studio/HandyControl.sln b/extension/visual studio/HandyControl.sln new file mode 100644 index 000000000..1eb8ab060 --- /dev/null +++ b/extension/visual studio/HandyControl.sln @@ -0,0 +1,101 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31717.71 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfApp", "WpfApp\WpfApp.csproj", "{83C70EB1-3A3F-4812-B86C-C7D1936699EB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfCoreApp", "WpfCoreApp\WpfCoreApp.csproj", "{2F6E9FB8-F579-40CF-A151-57F281F08E1B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfAppMVVMPrism", "WpfAppMVVMPrism\WpfAppMVVMPrism.csproj", "{30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfCoreAppPrism", "WpfCoreAppPrism\WpfCoreAppPrism.csproj", "{DC81E129-BF4F-4BF1-A552-C3CD86905F1B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project Templates", "Project Templates", "{5DF2541E-AA3A-404D-8205-EB708BC77ABA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfAppMVVMStylet", "WpfAppMVVMStylet\WpfAppMVVMStylet.csproj", "{808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfCoreAppStylet", "WpfCoreAppStylet\WpfCoreAppStylet.csproj", "{5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandyControl", "HandyControl\HandyControl.csproj", "{2D0AE61D-2480-4AFE-8946-B25F940545B9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Debug|x86.ActiveCfg = Debug|x86 + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Debug|x86.Build.0 = Debug|x86 + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Release|Any CPU.Build.0 = Release|Any CPU + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Release|x86.ActiveCfg = Release|x86 + {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Release|x86.Build.0 = Release|x86 + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Debug|x86.ActiveCfg = Debug|x86 + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Debug|x86.Build.0 = Debug|x86 + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Release|Any CPU.Build.0 = Release|Any CPU + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Release|x86.ActiveCfg = Release|x86 + {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Release|x86.Build.0 = Release|x86 + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Debug|Any CPU.Build.0 = Debug|Any CPU + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Debug|x86.ActiveCfg = Debug|x86 + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Debug|x86.Build.0 = Debug|x86 + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Release|Any CPU.ActiveCfg = Release|Any CPU + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Release|Any CPU.Build.0 = Release|Any CPU + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Release|x86.ActiveCfg = Release|x86 + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14}.Release|x86.Build.0 = Release|x86 + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Debug|x86.ActiveCfg = Debug|x86 + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Debug|x86.Build.0 = Debug|x86 + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Release|Any CPU.Build.0 = Release|Any CPU + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Release|x86.ActiveCfg = Release|x86 + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B}.Release|x86.Build.0 = Release|x86 + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Debug|x86.ActiveCfg = Debug|x86 + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Debug|x86.Build.0 = Debug|x86 + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Release|Any CPU.Build.0 = Release|Any CPU + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Release|x86.ActiveCfg = Release|x86 + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B}.Release|x86.Build.0 = Release|x86 + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Debug|x86.ActiveCfg = Debug|x86 + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Debug|x86.Build.0 = Debug|x86 + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Release|Any CPU.Build.0 = Release|Any CPU + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Release|x86.ActiveCfg = Release|x86 + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC}.Release|x86.Build.0 = Release|x86 + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Debug|x86.ActiveCfg = Debug|x86 + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Debug|x86.Build.0 = Debug|x86 + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Release|Any CPU.Build.0 = Release|Any CPU + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Release|x86.ActiveCfg = Release|x86 + {2D0AE61D-2480-4AFE-8946-B25F940545B9}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {83C70EB1-3A3F-4812-B86C-C7D1936699EB} = {5DF2541E-AA3A-404D-8205-EB708BC77ABA} + {2F6E9FB8-F579-40CF-A151-57F281F08E1B} = {5DF2541E-AA3A-404D-8205-EB708BC77ABA} + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14} = {5DF2541E-AA3A-404D-8205-EB708BC77ABA} + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B} = {5DF2541E-AA3A-404D-8205-EB708BC77ABA} + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B} = {5DF2541E-AA3A-404D-8205-EB708BC77ABA} + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC} = {5DF2541E-AA3A-404D-8205-EB708BC77ABA} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A7F567D2-5FA3-4E17-A8A8-CDAFC217BFF5} + EndGlobalSection +EndGlobal diff --git a/extension/visual studio/HandyControl_VS_Templates/HandyControl_VS_Templates.csproj b/extension/visual studio/HandyControl/HandyControl.csproj similarity index 69% rename from extension/visual studio/HandyControl_VS_Templates/HandyControl_VS_Templates.csproj rename to extension/visual studio/HandyControl/HandyControl.csproj index 056551c07..b82538b5d 100644 --- a/extension/visual studio/HandyControl_VS_Templates/HandyControl_VS_Templates.csproj +++ b/extension/visual studio/HandyControl/HandyControl.csproj @@ -1,7 +1,7 @@  - 16.0 + 17.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) @@ -10,13 +10,13 @@ AnyCPU 2.0 {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA} + {2D0AE61D-2480-4AFE-8946-B25F940545B9} Library Properties - HandyControl_VS_Templates - HandyControl VS Templates + HandyControl + HandyControl v4.7.2 - false + true true true false @@ -46,6 +46,7 @@ + @@ -56,29 +57,38 @@ - - compile; build; native; contentfiles; analyzers; buildtransitive - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + + - true Always + true - true Always + true - true Always + true + + {30D2CC18-10F6-4C29-BEBE-9ED13FF77B14} + WpfAppMVVMPrism + ProjectTemplates + false + TemplateProjectOutputGroup%3b + + + {808EAEE5-3A92-4BDB-8ED3-2651837FCA5B} + WpfAppMVVMStylet + ProjectTemplates + false + TemplateProjectOutputGroup%3b + {83C70EB1-3A3F-4812-B86C-C7D1936699EB} WpfApp @@ -86,6 +96,20 @@ false TemplateProjectOutputGroup%3b + + {DC81E129-BF4F-4BF1-A552-C3CD86905F1B} + WpfCoreAppPrism + ProjectTemplates + false + TemplateProjectOutputGroup%3b + + + {5B2B8B67-EF20-470C-ADCC-97A5AFF1EBFC} + WpfCoreAppStylet + ProjectTemplates + false + TemplateProjectOutputGroup%3b + {2F6E9FB8-F579-40CF-A151-57F281F08E1B} WpfCoreApp diff --git a/extension/visual studio/HandyControl/HandyControlPackage.cs b/extension/visual studio/HandyControl/HandyControlPackage.cs new file mode 100644 index 000000000..ab0321cea --- /dev/null +++ b/extension/visual studio/HandyControl/HandyControlPackage.cs @@ -0,0 +1,53 @@ +using Microsoft.VisualStudio.Shell; +using System; +using System.Runtime.InteropServices; +using System.Threading; +using Task = System.Threading.Tasks.Task; + +namespace HandyControl +{ + /// + /// This is the class that implements the package exposed by this assembly. + /// + /// + /// + /// The minimum requirement for a class to be considered a valid package for Visual Studio + /// is to implement the IVsPackage interface and register itself with the shell. + /// This package uses the helper classes defined inside the Managed Package Framework (MPF) + /// to do it: it derives from the Package class that provides the implementation of the + /// IVsPackage interface and uses the registration attributes defined in the framework to + /// register itself and its components with the shell. These attributes tell the pkgdef creation + /// utility what data to put into .pkgdef file. + /// + /// + /// To get loaded into VS, the package must be referred by <Asset Type="Microsoft.VisualStudio.VsPackage" ...> in .vsixmanifest file. + /// + /// + [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] + [Guid(HandyControlPackage.PackageGuidString)] + public sealed class HandyControlPackage : AsyncPackage + { + /// + /// HandyControlPackage GUID string. + /// + public const string PackageGuidString = "ddca19e9-1d03-485b-ab0b-20dcc91242c8"; + + #region Package Members + + /// + /// Initialization of the package; this method is called right after the package is sited, so this is the place + /// where you can put all the initialization code that rely on services provided by VisualStudio. + /// + /// A cancellation token to monitor for initialization cancellation, which can occur when VS is shutting down. + /// A provider for progress updates. + /// A task representing the async work of package initialization, or an already completed task if there is none. Do not return null from this method. + protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) + { + // When initialized asynchronously, the current thread may be a background thread at this point. + // Do any initialization that requires the UI thread after switching to the UI thread. + await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); + } + + #endregion + } +} diff --git a/extension/visual studio/HandyControl_VS_Templates/License.txt b/extension/visual studio/HandyControl/License.txt similarity index 100% rename from extension/visual studio/HandyControl_VS_Templates/License.txt rename to extension/visual studio/HandyControl/License.txt diff --git a/extension/visual studio/HandyControl/Properties/AssemblyInfo.cs b/extension/visual studio/HandyControl/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..4cc1228fe --- /dev/null +++ b/extension/visual studio/HandyControl/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("HandyControl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HandyControl")] +[assembly: AssemblyCopyright("Copyright © HandyOrg 2018-2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("3.3.9.0")] +[assembly: AssemblyFileVersion("3.3.9.0")] diff --git a/extension/visual studio/HandyControl_VS_Templates/icon_100_100.png b/extension/visual studio/HandyControl/icon_100_100.png similarity index 100% rename from extension/visual studio/HandyControl_VS_Templates/icon_100_100.png rename to extension/visual studio/HandyControl/icon_100_100.png diff --git a/extension/visual studio/HandyControl_VS_Templates/icon_300_300.png b/extension/visual studio/HandyControl/icon_300_300.png similarity index 100% rename from extension/visual studio/HandyControl_VS_Templates/icon_300_300.png rename to extension/visual studio/HandyControl/icon_300_300.png diff --git a/extension/visual studio/HandyControl/source.extension.vsixmanifest b/extension/visual studio/HandyControl/source.extension.vsixmanifest new file mode 100644 index 000000000..964a4e5b2 --- /dev/null +++ b/extension/visual studio/HandyControl/source.extension.vsixmanifest @@ -0,0 +1,46 @@ + + + + + HandyControl + Contains some simple and commonly used WPF controls based on HandyControl +This VSIX Project will help people initialize a HandyControls project. + https://ghost1372.github.io/handycontrol + License.txt + https://ghost1372.github.io/handycontrol/quick_start + https://github.com/ghost1372/HandyControls/releases + icon_100_100.png + icon_300_300.png + WPF C# Control handycontrol dark theme light drawer sidemenu blurwindow badge + + + + + + + + amd64 + + + amd64 + + + amd64 + + + + + + + + + + + + + + + + + + diff --git a/extension/visual studio/HandyControl_VS_Templates.sln b/extension/visual studio/HandyControl_VS_Templates.sln deleted file mode 100644 index b739d7e1c..000000000 --- a/extension/visual studio/HandyControl_VS_Templates.sln +++ /dev/null @@ -1,43 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28803.352 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandyControl_VS_Templates", "HandyControl_VS_Templates\HandyControl_VS_Templates.csproj", "{3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfApp", "WpfApp\WpfApp.csproj", "{83C70EB1-3A3F-4812-B86C-C7D1936699EB}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfCoreApp", "WpfCoreApp\WpfCoreApp.csproj", "{2F6E9FB8-F579-40CF-A151-57F281F08E1B}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project Templates", "Project Templates", "{26BC7FA1-50F7-46C7-84FE-0D8ABAC47E07}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3F0F7B9E-C150-4FAA-9274-4F6F0A96B8CA}.Release|Any CPU.Build.0 = Release|Any CPU - {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {83C70EB1-3A3F-4812-B86C-C7D1936699EB}.Release|Any CPU.Build.0 = Release|Any CPU - {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2F6E9FB8-F579-40CF-A151-57F281F08E1B}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {83C70EB1-3A3F-4812-B86C-C7D1936699EB} = {26BC7FA1-50F7-46C7-84FE-0D8ABAC47E07} - {2F6E9FB8-F579-40CF-A151-57F281F08E1B} = {26BC7FA1-50F7-46C7-84FE-0D8ABAC47E07} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A7F567D2-5FA3-4E17-A8A8-CDAFC217BFF5} - EndGlobalSection -EndGlobal diff --git a/extension/visual studio/HandyControl_VS_Templates/Properties/AssemblyInfo.cs b/extension/visual studio/HandyControl_VS_Templates/Properties/AssemblyInfo.cs deleted file mode 100644 index 9acd9636e..000000000 --- a/extension/visual studio/HandyControl_VS_Templates/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("HandyControl VS Templates")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("HandyControl VS Templates")] -[assembly: AssemblyCopyright("Copyright © HandyOrg 2018-2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: ComVisible(false)] -[assembly: AssemblyVersion("3.3.0")] -[assembly: AssemblyFileVersion("3.3.0")] diff --git a/extension/visual studio/HandyControl_VS_Templates/source.extension.vsixmanifest b/extension/visual studio/HandyControl_VS_Templates/source.extension.vsixmanifest deleted file mode 100644 index 6d469c171..000000000 --- a/extension/visual studio/HandyControl_VS_Templates/source.extension.vsixmanifest +++ /dev/null @@ -1,36 +0,0 @@ - - - - - HandyControl VS Templates - This VSIX Project will help people initialize a HandyControl project. - https://handyorg.github.io/handycontrol - License.txt - https://handyorg.github.io/handycontrol/quick_start - https://github.com/HandyOrg/HandyControl/releases - icon_100_100.png - icon_300_300.png - WPF C# Control - - - - x86 - - - x86 - - - x86 - - - - - - - - - - - - - diff --git a/extension/visual studio/WpfApp/App.xaml b/extension/visual studio/WpfApp/App.xaml index a367b454f..ee9bd945f 100644 --- a/extension/visual studio/WpfApp/App.xaml +++ b/extension/visual studio/WpfApp/App.xaml @@ -1,12 +1,13 @@  - - + + diff --git a/extension/visual studio/WpfApp/App.xaml.cs b/extension/visual studio/WpfApp/App.xaml.cs index 0c2e8c9d6..bf5a3abf4 100644 --- a/extension/visual studio/WpfApp/App.xaml.cs +++ b/extension/visual studio/WpfApp/App.xaml.cs @@ -1,6 +1,24 @@ -namespace $safeprojectname$ +using HandyControl.Themes; +using System.Windows; +using System.Windows.Media; +namespace $safeprojectname$ { - public partial class App - { + public partial class App : Application +{ + internal void UpdateTheme(ApplicationTheme theme) + { + if (ThemeManager.Current.ApplicationTheme != theme) + { + ThemeManager.Current.ApplicationTheme = theme; + } + } + + internal void UpdateAccent(Brush accent) + { + if (ThemeManager.Current.AccentColor != accent) + { + ThemeManager.Current.AccentColor = accent; + } + } } } diff --git a/extension/visual studio/WpfApp/DesignTimeResources.xaml b/extension/visual studio/WpfApp/DesignTimeResources.xaml new file mode 100644 index 000000000..2e644b9e9 --- /dev/null +++ b/extension/visual studio/WpfApp/DesignTimeResources.xaml @@ -0,0 +1,6 @@ + + + + + diff --git a/extension/visual studio/WpfApp/MainWindow.xaml b/extension/visual studio/WpfApp/MainWindow.xaml index 09ce1524d..d610aa3bc 100644 --- a/extension/visual studio/WpfApp/MainWindow.xaml +++ b/extension/visual studio/WpfApp/MainWindow.xaml @@ -1,38 +1,151 @@ - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +