diff --git a/3-WPF命令.sln b/3-WPF命令.sln index c4d112f..d396347 100644 --- a/3-WPF命令.sln +++ b/3-WPF命令.sln @@ -22,6 +22,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-WPF样式和行为-1样 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-WPF样式和行为-2创建样式对象", "5-WPF样式和行为-2创建样式对象\5-WPF样式和行为-2创建样式对象.csproj", "{97B916D8-9AE5-4B39-A7D9-CDB7902AFA31}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-WPF样式和行为-3设置属性", "5-WPF样式和行为-3设置属性\5-WPF样式和行为-3设置属性.csproj", "{D8E267CE-6F9F-4455-A3F4-849CA9FB3CDC}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -72,5 +74,9 @@ Global {97B916D8-9AE5-4B39-A7D9-CDB7902AFA31}.Debug|Any CPU.Build.0 = Debug|Any CPU {97B916D8-9AE5-4B39-A7D9-CDB7902AFA31}.Release|Any CPU.ActiveCfg = Release|Any CPU {97B916D8-9AE5-4B39-A7D9-CDB7902AFA31}.Release|Any CPU.Build.0 = Release|Any CPU + {D8E267CE-6F9F-4455-A3F4-849CA9FB3CDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D8E267CE-6F9F-4455-A3F4-849CA9FB3CDC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D8E267CE-6F9F-4455-A3F4-849CA9FB3CDC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D8E267CE-6F9F-4455-A3F4-849CA9FB3CDC}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/5-WPF样式和行为-3设置属性/5-WPF样式和行为-3设置属性.csproj b/5-WPF样式和行为-3设置属性/5-WPF样式和行为-3设置属性.csproj new file mode 100644 index 0000000..5756d8b --- /dev/null +++ b/5-WPF样式和行为-3设置属性/5-WPF样式和行为-3设置属性.csproj @@ -0,0 +1,18 @@ + + + + WinExe + net8.0-windows + _5_WPF样式和行为_3设置属性 + enable + enable + true + + + + + Always + + + + diff --git a/5-WPF样式和行为-3设置属性/App.xaml b/5-WPF样式和行为-3设置属性/App.xaml new file mode 100644 index 0000000..6092edd --- /dev/null +++ b/5-WPF样式和行为-3设置属性/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/5-WPF样式和行为-3设置属性/App.xaml.cs b/5-WPF样式和行为-3设置属性/App.xaml.cs new file mode 100644 index 0000000..c655fcc --- /dev/null +++ b/5-WPF样式和行为-3设置属性/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace _5_WPF样式和行为_3设置属性; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/5-WPF样式和行为-3设置属性/AssemblyInfo.cs b/5-WPF样式和行为-3设置属性/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/5-WPF样式和行为-3设置属性/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样式和行为-3设置属性/MainWindow.xaml b/5-WPF样式和行为-3设置属性/MainWindow.xaml new file mode 100644 index 0000000..d54a030 --- /dev/null +++ b/5-WPF样式和行为-3设置属性/MainWindow.xaml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/5-WPF样式和行为-3设置属性/MainWindow.xaml.cs b/5-WPF样式和行为-3设置属性/MainWindow.xaml.cs new file mode 100644 index 0000000..6e1f1ba --- /dev/null +++ b/5-WPF样式和行为-3设置属性/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样式和行为_3设置属性; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/5-WPF样式和行为-3设置属性/public/003540AH4M72.jpg b/5-WPF样式和行为-3设置属性/public/003540AH4M72.jpg new file mode 100644 index 0000000..4aa96ac Binary files /dev/null and b/5-WPF样式和行为-3设置属性/public/003540AH4M72.jpg differ