The requested page is not available for the requested platform. You are viewing the content for Default platform.

ThemeManager.Theme Property

Provides access to the current grid theme.

Namespace: DevExpress.Mobile.DataGrid.Theme

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public static ThemeBase Theme { get; set; }
Public Shared Property Theme As ThemeBase

Property Value

Type Description
ThemeBase

A ThemeBase class descendant.

Remarks

The Theme property allows you to customize the theme that is applied to a grid. For more information, see the example below.

Examples

This example demonstrates how to customize a theme used to paint a GridControl.

To apply a theme to a GridControl, assign its name to the ThemeManager.ThemeName property. The Themes class stores available theme names.

The ThemeBase class's properties provide access to different customizers, which you can adjust to change appearance settings (for example, font attributes, border and background colors, etc.) of the grid's corresponding visual elements (such as data cells, group rows, filter panel, etc.). In this example, the following customizers are used.

Important

To apply the customization, call the ThemeManager.RefreshTheme method.

This example customizes the Light theme as it is shown in the image below.

Grid_Customizing

See Also