Back to Devexpress

Apply Themes

mobilecontrols-401069-xamarin-forms-data-grid-examples-themes.md

latest993 B
Original Source

Apply Themes

  • Feb 25, 2020

You can apply the Light and Dark built-in themes to DevExpress Xamarin.Forms UI controls to change their appearance. The following images show these themes for DataGridView:

Dark Theme

Light Theme

The Theme class stores available theme names. To apply the theme, assign a Theme class’s appropriate field to the ThemeManager.ThemeName property.

csharp
using Xamarin.Forms;
using DevExpress.XamarinForms.Core.Themes;

    // ...
    ThemeManager.ThemeName = Theme.Light;
    InitializeComponent();
    // ...