Skip to main content

Themes Overview

Themes determine the color palette and default visual cues applied to the elements in a grid.

Themes can be set using attribute syntax or property element syntax through a view's Theme property (see Examples 1 and 2 in Views and Themes Overview). If a theme is not specified, the system-color theme will be used. In either case, if the system-color theme is not recognized (e.g., a third-party color palette is being used), the Aero normal-color theme will be used. To change the view and theme using attribute syntax or property element syntax, the name of the view and (optionally) theme to use must be set (see Table 1).

Table 1: System-theme syntaxes

Themecolor paletteAttribute syntaxProperty element syntaxTarget views
AeroNormal[View.]Aero.NormalColor [View.]AeroNormalColorThemeAeroNormalColorThemeTableView
LunaNormal[View.]Luna.NormalColor [View.]LunaNormalColorThemeLunaNormalColorThemeTableView
LunaMetallic[View.]Luna.Metallic [View.]LunaMetallicThemeLunaMetallicThemeTableView
LunaHomestead[View.]Luna.Homestead [View.]LunaHomesteadThemeLunaHomesteadThemeTableView
RoyaleNormal[View.]Royale.NormalColor [View.]RoyaleNormalColorThemeRoyaleNormalColorThemeTableView
ClassicSystem[View.]Classic.SystemColor [View.]ClassicSystemColorThemeClassicSystemColorThemeTableView
ZuneNormal[View.]Zune.NormalColor [View.]ZuneNormalColorThemeZuneNormalColorThemeTableView
Windows7ThemeNormal[View.]Windows7 [View.]Windows7ThemeWindows7ThemeTableflowView and TableView
Windows8ThemeNormal[View.]Windows8 [View.]Windows8ThemeWindows8ThemeTableflowView and TableView

Office2007 Themes

Office 2007 themes are provided in the Xceed.Wpf.DataGrid.Office2007 assembly.

Table 3: Office 2007 theme syntaxes

Themecolor paletteAttribute syntaxProperty element syntaxTarget viewsAssembly
Office 2007Blue[View.]Office2007.Blue [View.]Office2007BlueThemeOffice2007BlueThemeTableViewXceed.Wpf.DataGrid.Office2007
Office 2007Black[View.]Office2007.Black [View.]Office2007BlackThemeOffice2007BlackThemeTableViewXceed.Wpf.DataGrid.Office2007
Office 2007Silver[View.]Office2007.Silver [View.]Office2007SilverThemeOffice2007SilverThemeTableViewXceed.Wpf.DataGrid.Office2007