WPF: Changing Resources (colors) from the App.xaml during runtime

It looks like you’re trying to do some sort of skinning? I’d recommend defining the resources in a Resource Dictionary contained in a separate file. Then in code (App.cs to load a default, then elsewhere to change) you can load the resources as so: //using System.Windows ResourceDictionary dict = new ResourceDictionary(); dict.Source = new Uri(“MyResourceDictionary.xaml”, … Read more