From a57b9d9d0aa72cee43cf3a1925d5d7c679ba0168 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Wed, 1 Jan 2025 12:17:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20WPF=E5=9F=BA=E7=A1=80-10-=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WPF基础-10-布局示例/App.xaml | 9 ++++ WPF基础-10-布局示例/App.xaml.cs | 12 ++++++ WPF基础-10-布局示例/AssemblyInfo.cs | 10 +++++ WPF基础-10-布局示例/MainWindow.xaml | 41 +++++++++++++++++++ WPF基础-10-布局示例/MainWindow.xaml.cs | 23 +++++++++++ .../WPF基础-10-布局示例.csproj | 12 ++++++ WPF基础.sln | 6 +++ 7 files changed, 113 insertions(+) create mode 100644 WPF基础-10-布局示例/App.xaml create mode 100644 WPF基础-10-布局示例/App.xaml.cs create mode 100644 WPF基础-10-布局示例/AssemblyInfo.cs create mode 100644 WPF基础-10-布局示例/MainWindow.xaml create mode 100644 WPF基础-10-布局示例/MainWindow.xaml.cs create mode 100644 WPF基础-10-布局示例/WPF基础-10-布局示例.csproj diff --git a/WPF基础-10-布局示例/App.xaml b/WPF基础-10-布局示例/App.xaml new file mode 100644 index 0000000..5a9ba6c --- /dev/null +++ b/WPF基础-10-布局示例/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF基础-10-布局示例/App.xaml.cs b/WPF基础-10-布局示例/App.xaml.cs new file mode 100644 index 0000000..4538027 --- /dev/null +++ b/WPF基础-10-布局示例/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF基础_10_布局示例; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF基础-10-布局示例/AssemblyInfo.cs b/WPF基础-10-布局示例/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF基础-10-布局示例/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) +)] \ No newline at end of file diff --git a/WPF基础-10-布局示例/MainWindow.xaml b/WPF基础-10-布局示例/MainWindow.xaml new file mode 100644 index 0000000..9289a3f --- /dev/null +++ b/WPF基础-10-布局示例/MainWindow.xaml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WPF基础-10-布局示例/MainWindow.xaml.cs b/WPF基础-10-布局示例/MainWindow.xaml.cs new file mode 100644 index 0000000..7a90d0c --- /dev/null +++ b/WPF基础-10-布局示例/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 WPF基础_10_布局示例; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/WPF基础-10-布局示例/WPF基础-10-布局示例.csproj b/WPF基础-10-布局示例/WPF基础-10-布局示例.csproj new file mode 100644 index 0000000..f1cc1a0 --- /dev/null +++ b/WPF基础-10-布局示例/WPF基础-10-布局示例.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + WPF基础_10_布局示例 + enable + enable + true + + + diff --git a/WPF基础.sln b/WPF基础.sln index bf92cde..2c35f3a 100644 --- a/WPF基础.sln +++ b/WPF基础.sln @@ -48,6 +48,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-7-Canvas1", "WPF EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-9-InkCanvas1", "WPF基础-9-InkCanvas1\WPF基础-9-InkCanvas1.csproj", "{78BD3D1C-1144-47CF-AAF1-E8401D7A769D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-10-布局示例", "WPF基础-10-布局示例\WPF基础-10-布局示例.csproj", "{4631C727-5394-44FC-84D7-DE1DE0622EF2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -150,5 +152,9 @@ Global {78BD3D1C-1144-47CF-AAF1-E8401D7A769D}.Debug|Any CPU.Build.0 = Debug|Any CPU {78BD3D1C-1144-47CF-AAF1-E8401D7A769D}.Release|Any CPU.ActiveCfg = Release|Any CPU {78BD3D1C-1144-47CF-AAF1-E8401D7A769D}.Release|Any CPU.Build.0 = Release|Any CPU + {4631C727-5394-44FC-84D7-DE1DE0622EF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4631C727-5394-44FC-84D7-DE1DE0622EF2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4631C727-5394-44FC-84D7-DE1DE0622EF2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4631C727-5394-44FC-84D7-DE1DE0622EF2}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal