diff --git a/3-WPF命令.sln b/3-WPF命令.sln index b7fdd2d..3746608 100644 --- a/3-WPF命令.sln +++ b/3-WPF命令.sln @@ -34,6 +34,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-WPF样式和行为-7简 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-WPF样式和行为-8多个触发器", "5-WPF样式和行为-8多个触发器\5-WPF样式和行为-8多个触发器.csproj", "{48E9E0D9-03B6-4A5B-8516-601081D83A1D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-WPF样式和行为-9事件触发器", "5-WPF样式和行为-9事件触发器\5-WPF样式和行为-9事件触发器.csproj", "{BC9BB464-80E7-450B-9430-A1DFEDD82B7E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -108,5 +110,9 @@ Global {48E9E0D9-03B6-4A5B-8516-601081D83A1D}.Debug|Any CPU.Build.0 = Debug|Any CPU {48E9E0D9-03B6-4A5B-8516-601081D83A1D}.Release|Any CPU.ActiveCfg = Release|Any CPU {48E9E0D9-03B6-4A5B-8516-601081D83A1D}.Release|Any CPU.Build.0 = Release|Any CPU + {BC9BB464-80E7-450B-9430-A1DFEDD82B7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC9BB464-80E7-450B-9430-A1DFEDD82B7E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC9BB464-80E7-450B-9430-A1DFEDD82B7E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC9BB464-80E7-450B-9430-A1DFEDD82B7E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/5-WPF样式和行为-9事件触发器/5-WPF样式和行为-9事件触发器.csproj b/5-WPF样式和行为-9事件触发器/5-WPF样式和行为-9事件触发器.csproj new file mode 100644 index 0000000..8cc3cf3 --- /dev/null +++ b/5-WPF样式和行为-9事件触发器/5-WPF样式和行为-9事件触发器.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + _5_WPF样式和行为_9事件触发器 + enable + enable + true + + + diff --git a/5-WPF样式和行为-9事件触发器/App.xaml b/5-WPF样式和行为-9事件触发器/App.xaml new file mode 100644 index 0000000..dd35ee5 --- /dev/null +++ b/5-WPF样式和行为-9事件触发器/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/5-WPF样式和行为-9事件触发器/App.xaml.cs b/5-WPF样式和行为-9事件触发器/App.xaml.cs new file mode 100644 index 0000000..3659096 --- /dev/null +++ b/5-WPF样式和行为-9事件触发器/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace _5_WPF样式和行为_9事件触发器; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/5-WPF样式和行为-9事件触发器/AssemblyInfo.cs b/5-WPF样式和行为-9事件触发器/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/5-WPF样式和行为-9事件触发器/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/5-WPF样式和行为-9事件触发器/MainWindow.xaml b/5-WPF样式和行为-9事件触发器/MainWindow.xaml new file mode 100644 index 0000000..f326b60 --- /dev/null +++ b/5-WPF样式和行为-9事件触发器/MainWindow.xaml @@ -0,0 +1,42 @@ + + + + + + + + + \ No newline at end of file diff --git a/5-WPF样式和行为-9事件触发器/MainWindow.xaml.cs b/5-WPF样式和行为-9事件触发器/MainWindow.xaml.cs new file mode 100644 index 0000000..9ec28a1 --- /dev/null +++ b/5-WPF样式和行为-9事件触发器/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 _5_WPF样式和行为_9事件触发器; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file