From 7511cb09ca771311603ad10a2b85b41556e78259 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Thu, 2 Jan 2025 21:21:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20WPF=E6=8E=A7=E4=BB=B6-4-=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WPF控件-4-标签/App.xaml | 9 ++++++++ WPF控件-4-标签/App.xaml.cs | 12 ++++++++++ WPF控件-4-标签/AssemblyInfo.cs | 10 +++++++++ WPF控件-4-标签/MainWindow.xaml | 21 ++++++++++++++++++ WPF控件-4-标签/MainWindow.xaml.cs | 33 ++++++++++++++++++++++++++++ WPF控件-4-标签/WPF控件-4-标签.csproj | 12 ++++++++++ WPF控件.sln | 6 +++++ 7 files changed, 103 insertions(+) create mode 100644 WPF控件-4-标签/App.xaml create mode 100644 WPF控件-4-标签/App.xaml.cs create mode 100644 WPF控件-4-标签/AssemblyInfo.cs create mode 100644 WPF控件-4-标签/MainWindow.xaml create mode 100644 WPF控件-4-标签/MainWindow.xaml.cs create mode 100644 WPF控件-4-标签/WPF控件-4-标签.csproj diff --git a/WPF控件-4-标签/App.xaml b/WPF控件-4-标签/App.xaml new file mode 100644 index 0000000..8d8662c --- /dev/null +++ b/WPF控件-4-标签/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF控件-4-标签/App.xaml.cs b/WPF控件-4-标签/App.xaml.cs new file mode 100644 index 0000000..9c5b28b --- /dev/null +++ b/WPF控件-4-标签/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF控件_4_标签; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF控件-4-标签/AssemblyInfo.cs b/WPF控件-4-标签/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF控件-4-标签/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控件-4-标签/MainWindow.xaml b/WPF控件-4-标签/MainWindow.xaml new file mode 100644 index 0000000..d8fad1f --- /dev/null +++ b/WPF控件-4-标签/MainWindow.xaml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + diff --git a/WPF控件-4-标签/MainWindow.xaml.cs b/WPF控件-4-标签/MainWindow.xaml.cs new file mode 100644 index 0000000..4d6af59 --- /dev/null +++ b/WPF控件-4-标签/MainWindow.xaml.cs @@ -0,0 +1,33 @@ +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控件_4_标签; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } + + private void ButtonBase_OnClick(object sender, RoutedEventArgs e) + { + Console.WriteLine("Press"); + } + + private void Confirm_OnClick(object sender, RoutedEventArgs e) + { + Console.WriteLine("Confirm"); + } +} \ No newline at end of file diff --git a/WPF控件-4-标签/WPF控件-4-标签.csproj b/WPF控件-4-标签/WPF控件-4-标签.csproj new file mode 100644 index 0000000..051739c --- /dev/null +++ b/WPF控件-4-标签/WPF控件-4-标签.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + WPF控件_4_标签 + enable + enable + true + + + diff --git a/WPF控件.sln b/WPF控件.sln index 5e71e2d..8cd9b67 100644 --- a/WPF控件.sln +++ b/WPF控件.sln @@ -6,6 +6,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-2-鼠标光标", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-3-内容原则", "WPF控件-3-内容原则\WPF控件-3-内容原则.csproj", "{AFDCB2E1-2BBF-4554-8673-BA92F5FD4D3C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-4-标签", "WPF控件-4-标签\WPF控件-4-标签.csproj", "{0CCEE398-E31A-4384-B16B-6D137F758716}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -24,5 +26,9 @@ Global {AFDCB2E1-2BBF-4554-8673-BA92F5FD4D3C}.Debug|Any CPU.Build.0 = Debug|Any CPU {AFDCB2E1-2BBF-4554-8673-BA92F5FD4D3C}.Release|Any CPU.ActiveCfg = Release|Any CPU {AFDCB2E1-2BBF-4554-8673-BA92F5FD4D3C}.Release|Any CPU.Build.0 = Release|Any CPU + {0CCEE398-E31A-4384-B16B-6D137F758716}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0CCEE398-E31A-4384-B16B-6D137F758716}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0CCEE398-E31A-4384-B16B-6D137F758716}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0CCEE398-E31A-4384-B16B-6D137F758716}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal