diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln
index 2fe88b7..2e29af9 100644
--- a/PacticeSolution/PacticeSolution.sln
+++ b/PacticeSolution/PacticeSolution.sln
@@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataBindingSample", "DataBi
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MVVMSample", "MVVMSample\MVVMSample.csproj", "{FFD799B6-18C5-413B-8984-B44C803473B0}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceSample", "ResourceSample\ResourceSample.csproj", "{858EC308-9ABD-44C1-92E1-59911F60FEB9}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -39,6 +41,10 @@ Global
{FFD799B6-18C5-413B-8984-B44C803473B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FFD799B6-18C5-413B-8984-B44C803473B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FFD799B6-18C5-413B-8984-B44C803473B0}.Release|Any CPU.Build.0 = Release|Any CPU
+ {858EC308-9ABD-44C1-92E1-59911F60FEB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {858EC308-9ABD-44C1-92E1-59911F60FEB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {858EC308-9ABD-44C1-92E1-59911F60FEB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {858EC308-9ABD-44C1-92E1-59911F60FEB9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/PacticeSolution/ResourceSample/App.xaml b/PacticeSolution/ResourceSample/App.xaml
new file mode 100644
index 0000000..6e725ec
--- /dev/null
+++ b/PacticeSolution/ResourceSample/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/PacticeSolution/ResourceSample/App.xaml.cs b/PacticeSolution/ResourceSample/App.xaml.cs
new file mode 100644
index 0000000..937c90b
--- /dev/null
+++ b/PacticeSolution/ResourceSample/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace ResourceSample
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/PacticeSolution/ResourceSample/AssemblyInfo.cs b/PacticeSolution/ResourceSample/AssemblyInfo.cs
new file mode 100644
index 0000000..8b5504e
--- /dev/null
+++ b/PacticeSolution/ResourceSample/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)
+)]
diff --git a/PacticeSolution/ResourceSample/MainWindow.xaml b/PacticeSolution/ResourceSample/MainWindow.xaml
new file mode 100644
index 0000000..8c0352d
--- /dev/null
+++ b/PacticeSolution/ResourceSample/MainWindow.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PacticeSolution/ResourceSample/MainWindow.xaml.cs b/PacticeSolution/ResourceSample/MainWindow.xaml.cs
new file mode 100644
index 0000000..0651521
--- /dev/null
+++ b/PacticeSolution/ResourceSample/MainWindow.xaml.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+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 ResourceSample
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ int _clickCount = 0;
+ private void btnDynamic_Click(object sender, RoutedEventArgs e)
+ {
+ if (_clickCount % 2 == 0)
+ this.Resources["CustomEventColor"] = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#3de385"));
+ else
+ this.Resources["CustomEventColor"] = Resources["CustomRed"];
+
+ _clickCount++;
+ }
+ }
+}
diff --git a/PacticeSolution/ResourceSample/ResourceSample.csproj b/PacticeSolution/ResourceSample/ResourceSample.csproj
new file mode 100644
index 0000000..4106cb0
--- /dev/null
+++ b/PacticeSolution/ResourceSample/ResourceSample.csproj
@@ -0,0 +1,10 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+
+
+