ThemeManager.ThemeName Property

Gets or sets the currently applied theme's name.

Namespace: DevExpress.Mobile.DataGrid.Theme

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

Declaration

public static string ThemeName { get; set; }
Public Shared Property ThemeName As String

Property Value

Type Description
String

Specifies the name of the theme. The available theme names are stored in the Themes class. You can either use its fields or specify the desired name manually.

By default, GridControl provides you with two predefined themes - Light and Dark. To apply the required theme to a grid, use the code below.

using Xamarin.Forms;
using DevExpress.Mobile.DataGrid.Theme;

     // ... 

    ThemeManager.ThemeName = Themes.Dark;

    // or 

    ThemeManager.ThemeName = "Dark";

    // ...

For more information, see the How to: Customize Themes document.

See Also