I am trying to use theming within my application, but I am having a problem with my styling not being applied correctly. I run the following lines of code:
App.Current.Resources.MergedDictionaries.Clear();
ResourceDictionary rd = new ResourceDictionary();
rd.Source = new Uri( "/Style2.xaml", UriKind.RelativeOrAbsolute );
App.Current.Resources.MergedDictionaries.Add( rd );
Do I need to refresh the page? If so, how do I do that in Silverlight?
Thanks! Blake