Exemple #1
0
 private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
 {
     tm.ApplyDefaultResource(Application.Current.Resources, "system", new[] { "Themes/Dictionary1.xaml" });
     tm.ApplyResource(Application.Current.Resources, new ThemeGroup("system", new[] { new ResourceDictionary()
                                                                                      {
                                                                                          Source = new Uri("pack://application:,,,/Gsof.Xaml.Demo;component/Themes/Dictionary2.xaml")
                                                                                      }, }));
 }