I have downloaded the demo Themes. I am also pretty new to WPF. I am trying to add the themes to an application in code behind using the following.
Collection<ResourceDictionary> mergedDicts = base.Resources.MergedDictionaries;
Xceed.Wpf.Themes.Office2007.Office2007BlueResourceDictionary myDictionary = new Xceed.Wpf.Themes.Office2007.Office2007BlueResourceDictionary();
myDictionary.LicenseKey = "XPT20-AUAKK-HAW1A-4NMA";
Application.Current.Resources.MergedDictionaries.Add(myDictionary);
But all I get is a white background. If i add
this.SetResourceReference(BackgroundProperty, "Office2007BlueResources");
Then i just get a black background no matter what theme I use.
How can I fix this issue in code behind?
Also is it possible in code behind to set the theme for the entire application?
thanks
Scott