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

DXWindow

Tip

This topic is outdated. Use the ThemedWindow class to display a window with the DevExpress visual themes support.

Use the DevExpress WPF Window control to display windows that are visually consistent with other controls that use DevExpress visual themes. The DXWindow control is represented by the DXWindow class; the control inherits the base functionality from the Window class. The following image shows the DXWindow control:

DXWindow

Follow these steps to replace the standard Window class in your application with the DXWindow:

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

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

    to:

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

    <Window x:Class="Example.MainWindow"
    

    to:

    <dxc:DXWindow x:Class="Example.MainWindow"
     ...
    xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"