Category / Section
How to improve performance in Skin Storage while using VisualStyles in WPF?
3 mins read
Set EnableOptimization property
To improve the performance in Skin Storage the Enable Optimization property needs to be enabled.
XML
<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#
Syntax: SkinStorage.SetEnableOptimization(DependencyObject object,bool value) SkinStorage.SetVisualStyle(DependencyObject object,string value) Example: 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.
Figure 1: Skin Storage