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

DXWindow Class

Represents a window that supports DX themes.

Namespace: DevExpress.Xpf.Core

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

Declaration

public class DXWindow :
    Window,
    ILogicalOwner,
    IInputElement,
    IWindowResizeHelperClient,
    IHeaderItemsControlHost

Remarks

TIP

This class is outdated. Use the ThemedWindow class to display a window that supports DevExpress themes.

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

The following image shows a DXWindow containing DevExpress controls. The window and controls are painted using the Office2007Blue theme.

DXWindow

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

  • 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"
    
See Also