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:
This example sets the default skin to Office2010.
XAML |
Copy Code |
---|---|
<ss:GcSpreadSheet HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="250" Width="427"> <ss:GcSpreadSheet.Resources> <ResourceDictionary Source="/GrapeCity.Silverlight.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.Silverlight.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.Silverlight.SpreadSheet.UI;component/Themes/Office2010/generic.xaml", UriKind.RelativeOrAbsolute)}) GcSpreadSheet1.Invalidate() |