set xaml in C#

May 29, 2009 at 4:59 PM

hi,

 

is is possible to set the theme

<ResourceDictionary Source="ExpressionDark.xaml"/>

in C# ?