ThemeManager.ThemeName Property
In This Article
Gets or sets the currently applied theme‘s name.
Namespace: DevExpress.Mobile.DataGrid.Theme
Assembly: DevExpress.Mobile.Grid.v18.2.dll
#Declaration
#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. |
#Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the Grid
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