From 02b17c41a0f4036e35f3678da393f0136480ac82 Mon Sep 17 00:00:00 2001
From: Bunny <1319900154@qq.com>
Date: Thu, 23 Jan 2025 23:02:46 +0800
Subject: [PATCH] =?UTF-8?q?feat:=205-17.4=E6=94=B9=E5=8F=98=E5=B1=9E?=
=?UTF-8?q?=E6=80=A7=E8=A7=A6=E5=8F=91=E5=99=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../5-17.4改变属性触发器.csproj | 12 ++++++++
5-17.4改变属性触发器/App.xaml | 9 ++++++
5-17.4改变属性触发器/App.xaml.cs | 12 ++++++++
5-17.4改变属性触发器/AssemblyInfo.cs | 10 +++++++
5-17.4改变属性触发器/MainWindow.xaml | 28 +++++++++++++++++++
5-17.4改变属性触发器/MainWindow.xaml.cs | 23 +++++++++++++++
5-WPF模板和自定义元素.sln | 6 ++++
7 files changed, 100 insertions(+)
create mode 100644 5-17.4改变属性触发器/5-17.4改变属性触发器.csproj
create mode 100644 5-17.4改变属性触发器/App.xaml
create mode 100644 5-17.4改变属性触发器/App.xaml.cs
create mode 100644 5-17.4改变属性触发器/AssemblyInfo.cs
create mode 100644 5-17.4改变属性触发器/MainWindow.xaml
create mode 100644 5-17.4改变属性触发器/MainWindow.xaml.cs
diff --git a/5-17.4改变属性触发器/5-17.4改变属性触发器.csproj b/5-17.4改变属性触发器/5-17.4改变属性触发器.csproj
new file mode 100644
index 0000000..5f64633
--- /dev/null
+++ b/5-17.4改变属性触发器/5-17.4改变属性触发器.csproj
@@ -0,0 +1,12 @@
+
+
+
+ WinExe
+ net8.0-windows
+ _5_17._4改变属性触发器
+ enable
+ enable
+ true
+
+
+
diff --git a/5-17.4改变属性触发器/App.xaml b/5-17.4改变属性触发器/App.xaml
new file mode 100644
index 0000000..216c8c5
--- /dev/null
+++ b/5-17.4改变属性触发器/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/5-17.4改变属性触发器/App.xaml.cs b/5-17.4改变属性触发器/App.xaml.cs
new file mode 100644
index 0000000..a95648f
--- /dev/null
+++ b/5-17.4改变属性触发器/App.xaml.cs
@@ -0,0 +1,12 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace _5_17._4改变属性触发器;
+
+///
+/// Interaction logic for App.xaml
+///
+public partial class App : Application
+{
+}
\ No newline at end of file
diff --git a/5-17.4改变属性触发器/AssemblyInfo.cs b/5-17.4改变属性触发器/AssemblyInfo.cs
new file mode 100644
index 0000000..4a05c7d
--- /dev/null
+++ b/5-17.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/5-17.4改变属性触发器/MainWindow.xaml b/5-17.4改变属性触发器/MainWindow.xaml
new file mode 100644
index 0000000..8d5fdb6
--- /dev/null
+++ b/5-17.4改变属性触发器/MainWindow.xaml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/5-17.4改变属性触发器/MainWindow.xaml.cs b/5-17.4改变属性触发器/MainWindow.xaml.cs
new file mode 100644
index 0000000..3f36e2a
--- /dev/null
+++ b/5-17.4改变属性触发器/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_17._4改变属性触发器;
+
+///
+/// Interaction logic for MainWindow.xaml
+///
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/5-WPF模板和自定义元素.sln b/5-WPF模板和自定义元素.sln
index 42bbdd7..48cbb58 100644
--- a/5-WPF模板和自定义元素.sln
+++ b/5-WPF模板和自定义元素.sln
@@ -6,6 +6,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-17.1理解逻辑树和可
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-17.3创建控件模板", "5-17.3创建控件模板\5-17.3创建控件模板.csproj", "{126C42EA-CC67-4FDA-8839-374F57C667DB}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5-17.4改变属性触发器", "5-17.4改变属性触发器\5-17.4改变属性触发器.csproj", "{A9E35059-C6E4-4539-B78C-03DD9737D1E3}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -24,5 +26,9 @@ Global
{126C42EA-CC67-4FDA-8839-374F57C667DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{126C42EA-CC67-4FDA-8839-374F57C667DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{126C42EA-CC67-4FDA-8839-374F57C667DB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A9E35059-C6E4-4539-B78C-03DD9737D1E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A9E35059-C6E4-4539-B78C-03DD9737D1E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A9E35059-C6E4-4539-B78C-03DD9737D1E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A9E35059-C6E4-4539-B78C-03DD9737D1E3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal