DXWindow Class

A window that supports DX themes.

Namespace: DevExpress.Xpf.Core

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

Declaration

public class DXWindow :
    Window,
    ILogicalOwner,
    IInputElement,
    IWindowResizeHelperClient,
    IHeaderItemsControlHost
Public Class DXWindow
    Inherits Window
    Implements ILogicalOwner,
               IInputElement,
               IWindowResizeHelperClient,
               IHeaderItemsControlHost

Remarks

TIP

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

DXWindow is a Window class descendant. It supports the Window class and DX theme features to ensure the same look and feel as other DevExpress controls.

The following image shows a DXWindow that contains DevExpress controls. The window and controls use the Office2007Blue theme.

DXWindow

Make the following changes to replace the standard Window class in your application with the DXWindow:

  • In your code file (.cs)

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

    to:

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

    <Window x:Class="Example.MainWindow"
    

    to:

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