Skip to main content
A newer version of this page is available. .

Themed Window

The ThemedWindow is a Window class descendant.

ThemedWindow-ribbon-tab

This window type supports the following features:

  • DevExpress WPF themes;
  • Ribbon/Tab control integration. Add the RibbonControl or TabControl to your application and specify the ThemedWindow.WindowKind property to integrate the control into the application’s window:

    <dx:ThemedWindow 
            ...
            xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
            xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
            WindowKind="Auto">
        <Grid>
            <dxr:RibbonControl RibbonStyle="Office2010">
                <!-- RibbonControl content -->
            </dxr:RibbonControl>
        </Grid>
    </dx:ThemedWindow>
    

How to Enable ThemedWindow in Code

Follow the steps below to replace the standard Window class with the ThemedWindow:

  1. Change this:

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

    to this:

    using DevExpress.Xpf.Core;
    public partial class MainWindow : ThemedWindow {
         //...
    }
    
  2. Change this:

    <Window x:Class="Example.MainWindow"
    

    to this:

    <dx:ThemedWindow x:Class="Example.MainWindow"
    
  3. Add the missing reference:

    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    

How to Enable ThemedWindow with Smart Tag

Click the Convert to ThemedWindow Smart Tag element to convert the current Window to ThemedWindow:

SmartTagsConvertTo

Note

Convert to ThemedWindow element is available only when a window is selected.

The Smart Tag automatically updates XAML and CS code files.