This project is read-only.

Modify Theme at Startup

Nov 26, 2010 at 1:39 AM
Edited Nov 26, 2010 at 1:45 AM


I'm using ShinyBlue, which for the most part consists of 4 basic Colors.

What I'm trying to accomplish is binding these colors to my App's Properties, so that they can be permanently altered at runtime. However, since they are used in ControlTemplates,

I'm guessing all colors have to be loaded before the latter are constructed to take full effect. Is there any way to do this without much modification of the theme itself -

preferrably something equivalent to  <Color x:Key="myColor" Binding="{ /* Binding to Properties->colorXY */ }"/> ?

BTW, I tried using DynamicResources instead of static ones in the ControlTemplates, didn't seem to help


Thanks in advance,