本製品では、Office やデスクトップライクなテーマを提供しています。既定では、実行環境の OS にあわせて、適切なデスクトップテーマが自動的に適用されます。
テーマを明示的に適用するには、テーマテンプレートの URI を指定してリソースディクショナリに読み込みます。次のサンプルコードは、Office2016(カラフル)テーマを適用する例です。
XAML |
コードのコピー |
---|---|
<sg:GcSpreadGrid> <sg:GcSpreadGrid.Resources> <ResourceDictionary Source="pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.Colorful.xaml"/> </sg:GcSpreadGrid.Resources> </sg:GcSpreadGrid> |
製品が提供するテーマは次のとおりです。
テーマ | リソース URI |
---|---|
Office2016(カラフル) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.Colorful.xaml |
Office2016(黒) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.Black.xaml |
Office2016(濃い灰色) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.DarkGray.xaml |
Office2016(白) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.White.xaml |
Office2013(濃い灰色) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2013.DarkGray.xaml |
Office2013(薄い灰色) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2013.LightGray.xaml |
Office2013(白) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2013.White.xaml |
Office2010(黒) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2010.Black.xaml |
Office2010(青) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2010.Blue.xaml |
Office2010(銀) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2010.Silver.xaml |
Office2007(黒) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2007.Black.xaml |
Office2007(青) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2007.Blue.xaml |
Office2007(銀) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2007.Silver.xaml |
Aero | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Aero.NormalColor.xaml |
Aero2 | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Aero2.NormalColor.xaml |
AeroLite | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/AeroLite.NormalColor.xaml |
クラシック | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Classic.xaml |
Luna(青) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Luna.NormalColor.xaml |
Luna(オリーブ) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Luna.Homestead.xaml |
Luna(銀) | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Luna.Metallic.xaml |
Royale | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Royale.NormalColor.xaml |
BureauBlue | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/BureauBlue.xaml |
BureauBlack | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/BureauBlack.xaml |
ExpressionDark | pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/ExpressionDark.xaml |