Back to Devexpress

ThemeManager.ThemeName Attached Property

wpf-devexpress-dot-xpf-dot-core-dot-thememanager.md

latest2.2 KB
Original Source

ThemeManager.ThemeName Attached Property

Gets or sets the theme name. This is a dependency property.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetThemeName(DependencyObject) and SetThemeName(DependencyObject, String).

Returns

TypeDescription
String

A String value that specifies the theme name.

|

Remarks

DevExpress products include multiple themes that can be applied to all DevExpress WPF controls and some standard controls (GroupBox, ScrollViewer, Scroll, RadioButton, Button, ListBox, Slider, TabControl, Separator, ToggleButton, RepeatButton, Label, ListBoxItem, TabItem, ToolTip).

To apply a theme, assign its name to the ThemeName property:

xaml
<Window x:Class="WpfApplication5.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    Title="Window1" Height="300" Width="300"
    dx:ThemeManager.ThemeName="Office2007Black">
    <Grid>
        <dxg:GridControl Name="grid" Width="400" Height="270"
                         AutoPopulateColumns="True">
            <dxg:GridControl.View>
                <dxg:TableView AutoWidth="True"/>
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Window>

Refer to the following help topic for more information: List of DevExpress WPF Themes.

See Also

ThemeManager Class

ThemeManager Members

DevExpress.Xpf.Core Namespace