Skip to main content

DevExpress Silverlight Themes

StyleManager allows you to apply a predefined theme (designed by DevExpress) to an entire application (to all controls, standard or developed by DevExpress). To use a theme, reference the corresponding assembly.

Theme Assembly Image
DXStyle (Default) DevExpress.Xpf.Themes.DXStyle.v14.2 (Used by default) XPF-DevExpress-Theme
DeepBlue DevExpress.Xpf.Themes.DeepBlue.v14.2 Theme-DeepBlue
LightGray DevExpress.Xpf.Themes.LightGray.v14.2 Theme-LightGray
Metropolis Dark DevExpress.Xpf.Themes.MetropolisDark.v14.2 XPF-Metropolis-Dark-Theme
Metropolis Light DevExpress.Xpf.Themes.MetropolisLight.v14.2 XPF-Metropolis-Light-Theme
Office2007Black DevExpress.Xpf.Themes.Office2007Black.v14.2 Theme-Office2007Black
Office2007Blue DevExpress.Xpf.Themes.Office2007Blue.v14.2 Theme_Office2007Blue
Office2007Silver DevExpress.Xpf.Themes.Office2007Silver.v14.2 Theme-Office2007Silver
Office2010Black DevExpress.Xpf.Themes.Office2010Black.v14.2 theme-office2010black
Office2010Blue DevExpress.Xpf.Themes.Office2010Blue.v14.2 XPF-Office2010-Blue-Theme
Office2010Silver DevExpress.Xpf.Themes.Office2010Silver.v14.2 XPF-Office2010-Silver-Theme
Office2013 DevExpress.Xpf.Themes.Office2013.v14.2 XPF-Office2013-Theme
Seven DevExpress.Xpf.Themes.Seven.v14.2 Theme_Seven
VS2010 DevExpress.Xpf.Themes.vs2010.v14.2 XPF-Visual-Studio-Theme
TouchlineDark DevExpress.Xpf.Themes.TouchlineDark.v14.2 Theme_touchlinedark

#Applying a Theme to All Controls

To apply a theme to all controls (standard and DevExpress), do the following:

  • Reference the corresponding theme assembly.
  • Specify the required theme. Note that this should be done in code behind.

    
    using System.Windows.Controls;
    using DevExpress.Xpf.Core;
    
    public partial class MainPage : UserControl {
        public MainPage() {
            ThemeManager.ApplicationTheme = Theme.Office2007Blue;
            InitializeComponent();
        }
    }
    
NOTE

Theme assemblies contain appearance settings of all controls developed by DevExpress for Silverlight. When running the application under Visual Studio, the style manager checks whether all DevExpress assemblies, containing controls, are included in the application. If an assembly was not found, it throws an exception which does not affect the product's functionality. To avoid this (e.g. you do not need DevExpress.AgDataGrid.vX.X.dll), disable the following option.

XamlParseException