From e75faaf03ad0c4394b3b91d4fd90985067741e30 Mon Sep 17 00:00:00 2001 From: home-PC Date: Wed, 27 May 2026 13:34:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=20WPF=20=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E9=AA=A8=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 PersonalToolbox 解决方案和 ToolboxApp WPF 项目。 项目使用 .NET 8 WPF,作为后续 MVVM、托盘常驻和本地配置能力的基础。 --- PersonalToolbox.sln | 27 +++++++++++++++++++++++++++ src/ToolboxApp/App.xaml | 9 +++++++++ src/ToolboxApp/App.xaml.cs | 13 +++++++++++++ src/ToolboxApp/AssemblyInfo.cs | 10 ++++++++++ src/ToolboxApp/MainWindow.xaml | 12 ++++++++++++ src/ToolboxApp/MainWindow.xaml.cs | 23 +++++++++++++++++++++++ src/ToolboxApp/ToolboxApp.csproj | 11 +++++++++++ 7 files changed, 105 insertions(+) create mode 100644 PersonalToolbox.sln create mode 100644 src/ToolboxApp/App.xaml create mode 100644 src/ToolboxApp/App.xaml.cs create mode 100644 src/ToolboxApp/AssemblyInfo.cs create mode 100644 src/ToolboxApp/MainWindow.xaml create mode 100644 src/ToolboxApp/MainWindow.xaml.cs create mode 100644 src/ToolboxApp/ToolboxApp.csproj diff --git a/PersonalToolbox.sln b/PersonalToolbox.sln new file mode 100644 index 0000000..b1cf354 --- /dev/null +++ b/PersonalToolbox.sln @@ -0,0 +1,27 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{DF1687D8-B6FA-4DF9-90EC-E749B85024EC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToolboxApp", "src\ToolboxApp\ToolboxApp.csproj", "{9A4ED1BF-510A-4481-AE7B-62490D3D7BBA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9A4ED1BF-510A-4481-AE7B-62490D3D7BBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9A4ED1BF-510A-4481-AE7B-62490D3D7BBA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9A4ED1BF-510A-4481-AE7B-62490D3D7BBA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9A4ED1BF-510A-4481-AE7B-62490D3D7BBA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {9A4ED1BF-510A-4481-AE7B-62490D3D7BBA} = {DF1687D8-B6FA-4DF9-90EC-E749B85024EC} + EndGlobalSection +EndGlobal diff --git a/src/ToolboxApp/App.xaml b/src/ToolboxApp/App.xaml new file mode 100644 index 0000000..32710c7 --- /dev/null +++ b/src/ToolboxApp/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/src/ToolboxApp/App.xaml.cs b/src/ToolboxApp/App.xaml.cs new file mode 100644 index 0000000..ab07b05 --- /dev/null +++ b/src/ToolboxApp/App.xaml.cs @@ -0,0 +1,13 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace ToolboxApp; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} + diff --git a/src/ToolboxApp/AssemblyInfo.cs b/src/ToolboxApp/AssemblyInfo.cs new file mode 100644 index 0000000..cc29e7f --- /dev/null +++ b/src/ToolboxApp/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly:ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/src/ToolboxApp/MainWindow.xaml b/src/ToolboxApp/MainWindow.xaml new file mode 100644 index 0000000..1df5096 --- /dev/null +++ b/src/ToolboxApp/MainWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/src/ToolboxApp/MainWindow.xaml.cs b/src/ToolboxApp/MainWindow.xaml.cs new file mode 100644 index 0000000..13b045b --- /dev/null +++ b/src/ToolboxApp/MainWindow.xaml.cs @@ -0,0 +1,23 @@ +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace ToolboxApp; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/src/ToolboxApp/ToolboxApp.csproj b/src/ToolboxApp/ToolboxApp.csproj new file mode 100644 index 0000000..e3e33e3 --- /dev/null +++ b/src/ToolboxApp/ToolboxApp.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net8.0-windows + enable + enable + true + + +