Spread WPF Documentation
Setting a Default Skin

You can set a default appearance or skin for the control using a resource.

The following image displays the Office2013 appearance.

The following resources are available:

Using Code

This example sets the default skin to Office2010.

XAML
Copy Code
<ss:GcSpreadSheet x:Name="GcSpreadSheet1" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="278" Width="446">
        <ss:GcSpreadSheet.Resources>
            <ResourceDictionary Source="/GrapeCity.WPF.SpreadSheet.UI;component/Themes/Office2010/generic.xaml"/>
        </ss:GcSpreadSheet.Resources>
        </ss:GcSpreadSheet>

This example sets the default skin to Office2010 using code.

CS
Copy Code
this.gcSpreadSheet1.Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/GrapeCity.WPF.SpreadSheet.UI;component/Themes/Office2010/generic.xaml", UriKind.RelativeOrAbsolute) });
this.gcSpreadSheet1.Invalidate();
VB.NET
Copy Code
Me.GcSpreadSheet1.Resources.MergedDictionaries.Add(New ResourceDictionary() With {.Source = New Uri("/GrapeCity.WPF.SpreadSheet.UI;component/Themes/Office2010/generic.xaml", UriKind.RelativeOrAbsolute)})
GcSpreadSheet1.Invalidate()
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback