From 1031be446f379d7fba9504bce2b11a606a3c7b39 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Mon, 30 Dec 2024 15:24:54 +0800 Subject: [PATCH] =?UTF-8?q?WPF=E5=9F=BA=E7=A1=80-5-DockPanel3=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WPF基础-5-DockPanel3对话框/App.xaml | 9 ++++++ WPF基础-5-DockPanel3对话框/App.xaml.cs | 12 ++++++++ WPF基础-5-DockPanel3对话框/AssemblyInfo.cs | 10 +++++++ WPF基础-5-DockPanel3对话框/MainWindow.xaml | 28 +++++++++++++++++++ WPF基础-5-DockPanel3对话框/MainWindow.xaml.cs | 20 +++++++++++++ .../WPF基础-5-DockPanel3对话框.csproj | 12 ++++++++ WPF基础.sln | 6 ++++ 7 files changed, 97 insertions(+) create mode 100644 WPF基础-5-DockPanel3对话框/App.xaml create mode 100644 WPF基础-5-DockPanel3对话框/App.xaml.cs create mode 100644 WPF基础-5-DockPanel3对话框/AssemblyInfo.cs create mode 100644 WPF基础-5-DockPanel3对话框/MainWindow.xaml create mode 100644 WPF基础-5-DockPanel3对话框/MainWindow.xaml.cs create mode 100644 WPF基础-5-DockPanel3对话框/WPF基础-5-DockPanel3对话框.csproj diff --git a/WPF基础-5-DockPanel3对话框/App.xaml b/WPF基础-5-DockPanel3对话框/App.xaml new file mode 100644 index 0000000..b814c46 --- /dev/null +++ b/WPF基础-5-DockPanel3对话框/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF基础-5-DockPanel3对话框/App.xaml.cs b/WPF基础-5-DockPanel3对话框/App.xaml.cs new file mode 100644 index 0000000..6a61067 --- /dev/null +++ b/WPF基础-5-DockPanel3对话框/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF基础_5_DockPanel0对话框; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF基础-5-DockPanel3对话框/AssemblyInfo.cs b/WPF基础-5-DockPanel3对话框/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF基础-5-DockPanel3对话框/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基础-5-DockPanel3对话框/MainWindow.xaml b/WPF基础-5-DockPanel3对话框/MainWindow.xaml new file mode 100644 index 0000000..0befdb0 --- /dev/null +++ b/WPF基础-5-DockPanel3对话框/MainWindow.xaml @@ -0,0 +1,28 @@ + + + + + + + + + + 这是消息提示 + + + + + + + + + + + \ No newline at end of file diff --git a/WPF基础-5-DockPanel3对话框/MainWindow.xaml.cs b/WPF基础-5-DockPanel3对话框/MainWindow.xaml.cs new file mode 100644 index 0000000..b812061 --- /dev/null +++ b/WPF基础-5-DockPanel3对话框/MainWindow.xaml.cs @@ -0,0 +1,20 @@ +using System.Windows; + +namespace WPF基础_5_DockPanel0对话框; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } + + private void ButtonBase_OnClick(object sender, RoutedEventArgs e) + { + MessageBox.Show("我知道了", "你要退出了!"); + Close(); + } +} \ No newline at end of file diff --git a/WPF基础-5-DockPanel3对话框/WPF基础-5-DockPanel3对话框.csproj b/WPF基础-5-DockPanel3对话框/WPF基础-5-DockPanel3对话框.csproj new file mode 100644 index 0000000..c1aa314 --- /dev/null +++ b/WPF基础-5-DockPanel3对话框/WPF基础-5-DockPanel3对话框.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + WPF基础_5_DockPanel0对话框 + enable + enable + true + + + diff --git a/WPF基础.sln b/WPF基础.sln index 3245fbe..76833a6 100644 --- a/WPF基础.sln +++ b/WPF基础.sln @@ -20,6 +20,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-5-DockPanel1", "W EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-5-DockPanel2", "WPF基础-5-DockPanel2\WPF基础-5-DockPanel2.csproj", "{492BB6A7-437F-4E7B-BCA8-3C8BB624B8C7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-5-DockPanel3对话框", "WPF基础-5-DockPanel3对话框\WPF基础-5-DockPanel3对话框.csproj", "{7165AC1A-72DD-4124-A9F1-1CA0205111B8}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -66,5 +68,9 @@ Global {492BB6A7-437F-4E7B-BCA8-3C8BB624B8C7}.Debug|Any CPU.Build.0 = Debug|Any CPU {492BB6A7-437F-4E7B-BCA8-3C8BB624B8C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {492BB6A7-437F-4E7B-BCA8-3C8BB624B8C7}.Release|Any CPU.Build.0 = Release|Any CPU + {7165AC1A-72DD-4124-A9F1-1CA0205111B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7165AC1A-72DD-4124-A9F1-1CA0205111B8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7165AC1A-72DD-4124-A9F1-1CA0205111B8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7165AC1A-72DD-4124-A9F1-1CA0205111B8}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal