I am trying to allow the user to customize the elements in a WPF application. What I am trying to achieve is, if I have a list box which specifies all the form elements (Tex
Have you tried using Resource Dictionaries
Resource Dictionary
XAML for the control
Code to change styles at runtime
var rd = new ResourceDictionary();
rd.Add("TextColor", "#FFFFFF");
Application.Current.Resources.MergedDictionaries.Add(rd);
This will merge your new styles with the existing ones, and the change will be automatically reflected on all the controls linked with those styles.