SPREAD for WPF 3.0J - GcSpreadGrid
テーマ
GrapeCity SPREAD for WPF 3.0J > 開発者ガイド > 外観 > テーマ

本製品では、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(カラフル)
Office2016(黒) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.Black.xaml
Office2016(黒)
Office2016(濃い灰色) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.DarkGray.xaml
Office2016(濃い灰色)
Office2016(白) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2016.White.xaml
Office2016(白)
Office2013(濃い灰色) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2013.DarkGray.xaml
Office2013(濃い灰色)
Office2013(薄い灰色) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2013.LightGray.xaml
Office2013(薄い灰色)
Office2013(白) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2013.White.xaml
Office2013(白)
Office2010(黒) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2010.Black.xaml
Office2010(黒)
Office2010(青) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2010.Blue.xaml
Office2010(青)
Office2010(銀) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2010.Silver.xaml
Office2010(銀)
Office2007(黒) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2007.Black.xaml
Office2007(黒)
Office2007(青) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2007.Blue.xaml
Office2007(青)
Office2007(銀) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Office2007.Silver.xaml
Office2007(銀)
Aero pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Aero.NormalColor.xaml
Aero
Aero2 pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Aero2.NormalColor.xaml
Aero2
AeroLite pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/AeroLite.NormalColor.xaml
AeroLite
クラシック pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Classic.xaml
クラシック
Luna(青) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Luna.NormalColor.xaml
Luna(青)
Luna(オリーブ) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Luna.Homestead.xaml
Luna(オリーブ)
Luna(銀) pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Luna.Metallic.xaml
Luna(銀)
Royale pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/Royale.NormalColor.xaml
Royale
BureauBlue pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/BureauBlue.xaml
BureauBlue
BureauBlack pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/BureauBlack.xaml
BureauBlack
ExpressionDark pack://application:,,,/GrapeCity.WPF.SpreadGrid;component/Themes/ExpressionDark.xaml
ExpressionDark
関連トピック