Skip to main content

DXWindow Class

A window that supports DX themes.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

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.

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"
    

The following code snippets (auto-collected from DevExpress Examples) contain references to the DXWindow class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also