Articles in this section

How to improve performance in WPF Skin Storage while using VisualStyles?

Set EnableOptimization property

The performance of SkinManager can be improved by setting the EnableOptimization property. So, all themes resource dictionaries merged to Application.Resources instead of merging resource dictionaries to each individual controls in the application.XAML.

XAML:

<syncfusion:ChromelessWindow x:Class="Sample.MainWindow"  x:Name="window"     
  xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
 xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:sfSample="clr-namespace:Sample"
 xmlns:syncfusion="http://schemas.syncfusion.com/wpf  Title="MainWindow"
 syncfusion:SkinStorage.EnableOptimization="True"
syncfusion:SkinStorage.VisualStyle="Office2010Blue" >

C#

SkinStorage.SetEnableOptimization(window, true);
SkinStorage.SetVisualStyle(DependencyObject object, “Office2010Blue”);

Syncfusion Built-in Skins

  • Office2003
  • Office2007Blue
  • Office2007Black
  • Office2007Silver
  • ShinyRed
  • Blend
  • ShinyBlue
  • SyncOrange
  • VS2010
  • Office2010Blue
  • Office2010Black
  • Office2010Silver
  • Metro
  • Transparent

The above code is used to set the VisualStyle and EnableOptimization properties and the screenshot is as follows.

SkinStorage

Figure 1: Skin Storage

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied