diff --git a/WPF控件-11-Expander2/App.xaml b/WPF控件-11-Expander2/App.xaml new file mode 100644 index 0000000..80f8f76 --- /dev/null +++ b/WPF控件-11-Expander2/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF控件-11-Expander2/App.xaml.cs b/WPF控件-11-Expander2/App.xaml.cs new file mode 100644 index 0000000..2d9607c --- /dev/null +++ b/WPF控件-11-Expander2/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF控件_11_Expander2; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF控件-11-Expander2/AssemblyInfo.cs b/WPF控件-11-Expander2/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF控件-11-Expander2/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控件-11-Expander2/MainWindow.xaml b/WPF控件-11-Expander2/MainWindow.xaml new file mode 100644 index 0000000..4fb1393 --- /dev/null +++ b/WPF控件-11-Expander2/MainWindow.xaml @@ -0,0 +1,25 @@ + + + + + + + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit... + + + + + + + + diff --git a/WPF控件-11-Expander2/MainWindow.xaml.cs b/WPF控件-11-Expander2/MainWindow.xaml.cs new file mode 100644 index 0000000..0c42067 --- /dev/null +++ b/WPF控件-11-Expander2/MainWindow.xaml.cs @@ -0,0 +1,28 @@ +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控件_11_Expander2; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } + + private void Expander_OnCollapsed(object sender, RoutedEventArgs e) + { + Console.WriteLine("关闭?"); + } +} \ No newline at end of file diff --git a/WPF控件-11-Expander2/WPF控件-11-Expander2.csproj b/WPF控件-11-Expander2/WPF控件-11-Expander2.csproj new file mode 100644 index 0000000..885d0f4 --- /dev/null +++ b/WPF控件-11-Expander2/WPF控件-11-Expander2.csproj @@ -0,0 +1,18 @@ + + + + WinExe + net8.0-windows + WPF控件_11_Expander2 + enable + enable + true + + + + + Always + + + + diff --git a/WPF控件-11-Expander2/public/003540AH4M72.jpg b/WPF控件-11-Expander2/public/003540AH4M72.jpg new file mode 100644 index 0000000..4aa96ac Binary files /dev/null and b/WPF控件-11-Expander2/public/003540AH4M72.jpg differ diff --git a/WPF控件.sln b/WPF控件.sln index ddabaeb..9ea711d 100644 --- a/WPF控件.sln +++ b/WPF控件.sln @@ -24,6 +24,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-10-TabItem-1", "W EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-11-Expander", "WPF控件-11-Expander\WPF控件-11-Expander.csproj", "{D6659E10-D875-48FC-983F-8F2FF62FF0EB}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-11-Expander2", "WPF控件-11-Expander2\WPF控件-11-Expander2.csproj", "{0D2CEE95-6B52-4D7D-B001-ED6AB4262875}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -78,5 +80,9 @@ Global {D6659E10-D875-48FC-983F-8F2FF62FF0EB}.Debug|Any CPU.Build.0 = Debug|Any CPU {D6659E10-D875-48FC-983F-8F2FF62FF0EB}.Release|Any CPU.ActiveCfg = Release|Any CPU {D6659E10-D875-48FC-983F-8F2FF62FF0EB}.Release|Any CPU.Build.0 = Release|Any CPU + {0D2CEE95-6B52-4D7D-B001-ED6AB4262875}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D2CEE95-6B52-4D7D-B001-ED6AB4262875}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D2CEE95-6B52-4D7D-B001-ED6AB4262875}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D2CEE95-6B52-4D7D-B001-ED6AB4262875}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal