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 |
---|---|
<UI:GcSpreadSheet HorizontalAlignment="Left" Margin="59,51,0,0" VerticalAlignment="Top" Width="477" Height="257"> <UI:GcSpreadSheet.Resources> <ResourceDictionary Source="ms-appx:///GrapeCity.Xaml.SpreadSheet.UI/Themes/Office2010/generic.xaml"/> </UI:GcSpreadSheet.Resources> </UI:GcSpreadSheet> |
This example sets the default skin to Office2010 using code.
CS |
Copy Code |
---|---|
this.gcSpreadSheet1.Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("ms-appx:///GrapeCity.Xaml.SpreadSheet.UI/Themes/Office2010/generic.xaml", UriKind.RelativeOrAbsolute) }); this.gcSpreadSheet1.Invalidate(); |
VB |
Copy Code |
---|---|
Me.GcSpreadSheet1.Resources.MergedDictionaries.Add(New ResourceDictionary() With {.Source = New Uri("/GrapeCity.Xaml.SpreadSheet.UI;component/Themes/Office2010/generic.xaml", UriKind.RelativeOrAbsolute)}) GcSpreadSheet1.Invalidate() |