Hi Guys,
I am trying to dynamicaly set the theme for my applicaiton!
This is what I am trying:
Application.Current.Resources.MergedDictionaries.Clear()
Application.Current.Resources.MergedDictionaries.Add(mege)
Next
But I do not seam to be getting any change!
Ok, So I found (http://forums.infragistics.com/forums/p/10352/39777.aspx#39777) this and that solved my theme switching problem. I do not know if it works yet, but I think it is doing something as I am now getting an exception from the Composite WPF framework saying that my "regions" already contain controls.
I think this is due to a low level redraw inacting the "Adapt" method on the RegionManger and it trying to re-adapt the controls...
Has anyone run into this?