A newer version of this page is available. Switch to the current version.

ThemedWindow Class

Represents a window that supports DevExpress WPF themes and Ribbon/Tab control integration.

Namespace: DevExpress.Xpf.Core

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

Declaration

public class ThemedWindow :
    Window,
    IRibbonWindow,
    IHeaderItemsControlHost,
    IBackButtonSupport,
    IWindowSurrogate

Remarks

The ThemedWindow is a Window class descendant. It supports all the features provided by the Window class. In addition, it features DevExpress WPF theme support capability, so the window’s look and feel is consistent with other DevExpress controls.

Use the ThemedWindow.WindowKind property to seamlessly integrate the RibbonControl or DXTabControl into your window.

To replace the standard Window class in your application with the ThemedWindow, do the following:

  • In your code file (.cs), change:

    public partial class MainWindow : Window {
    //...
    

    to:

    using DevExpress.Xpf.Core;
    public partial class MainWindow : ThemedWindow {
    //...
    
  • In an XAML file, change:

    <Window x:Class="Example.MainWindow"
    

    to:

    <dx:ThemedWindow x:Class="Example.MainWindow"
     ...
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    
See Also