Posted By

qrist0ph on 12/15/09


Tagged

WPF xaml


Versions (?)

WPF Skinning


 / Published in: C#
 

  1. var rd = new ResourceDictionary();
  2. string uriSkin;
  3. uriSkin = toggle ? @"Views/PivotTable/PivotTableSkin.xaml" : @"Views/PivotTable/PivotTableSkin2.xaml";
  4. rd.MergedDictionaries.Add(Application.LoadComponent(new Uri(uriSkin, UriKind.Relative)) as ResourceDictionary);
  5. Application.Current.Resources = rd;

Report this snippet  

You need to login to post a comment.