0
我想將ComponentOne主題應用於我的Silverlight應用程序;但是,我無法正常工作。任何人都知道我錯過了什麼?將silverlight應用於整個應用程序
我想添加它App.xaml.cs下application_startup:
Current.Resources.MergedDictionaries.Add(new C1ThemeWhistlerBlue());
我想將ComponentOne主題應用於我的Silverlight應用程序;但是,我無法正常工作。任何人都知道我錯過了什麼?將silverlight應用於整個應用程序
我想添加它App.xaml.cs下application_startup:
Current.Resources.MergedDictionaries.Add(new C1ThemeWhistlerBlue());
我最終找出另一種方式來做到這一點。將以下行添加到app.xaml.cs中的Application_startup:
new C1ThemeWhistlerBlue().Apply((FrameworkElement)Current.RootVisual);
這將添加主題Whistler Blue。
要刪除主題,您需要清除Current.Resources.MergedDictionaries(或者只是從中刪除該對象)。