Spread WPF 14
Spread WPF Documentation / Developer's Guide / Customizing the Appearance / Setting a Default Skin
In This Topic
    Setting a Default Skin
    In This Topic

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

    The following image displays the Office2013 appearance.

    Control with default skin

    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