mvvm sample (advanced)

This commit is contained in:
2023-06-21 10:59:54 +09:00
parent e60506aaf7
commit 42bc51c9e9
12 changed files with 413 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ namespace ResourceSample
if (_clickCount % 2 == 0)
this.Resources["CustomEventColor"] = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#3de385"));
else
this.Resources["CustomEventColor"] = Resources["CustomRed"];
this.Resources["CustomEventColor"] = Application.Current.FindResource("CustomRed");
_clickCount++;
}