Back to Devexpress

DXWindow Class

wpf-devexpress-dot-xpf-dot-core-9c32ec73.md

latest5.6 KB
Original Source

DXWindow Class

A window that supports DX themes.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class DXWindow :
    Window,
    ILogicalOwner,
    IInputElement,
    IWindowResizeHelperClient,
    IHeaderItemsControlHost
vb
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.

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

  • In your code file (.cs)

  • In an XAML file

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.

how-to-create-supertips-for-bar-items-ribbon-items-and-standard-controls-in-code-and-xaml-e2702/CS/SuperTipFromXamlForStandardControls.xaml#L1

xml
<dx:DXWindow x:Class="SuperTipDemo.SuperTipFromXamlForStandardControls"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

wpf-data-editors-create-registration-form/CS/RegistrationForm.Lesson3/MainWindow.xaml#L1

xml
<dx:DXWindow x:Class="RegistrationForm.MainWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

wpf-dock-layout-manager-insert-prism-regions-into-dock-layout-manager-panels/CS/PrismSupportSample/Shell.xaml#L1

xml
<dxcore:DXWindow x:Class="PrismSupportSample.Shell"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

wpf-dock-layout-manager-define-prism-regions-for-dock-layout-manager-elements/CS/PrismOnDXDocking/Shell.xaml#L1

xml
<dxcore:DXWindow x:Class="PrismOnDXDocking.Shell"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

how-to-set-imagesize-with-enumitemssourcebehavior/CS/EnumItemsSourceBehaviorExample/MainWindow.xaml#L1

xml
<dx:DXWindow
    x:Class="EnumItemsSourceBehaviorExample.MainWindow"

Inheritance

Show 16 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl Window DXWindow DXDialog

DXDialogWindow

DXTabbedWindow

RibbonDocumentPreviewWindow

DXRibbonWindow

WinUIDialogWindow

See Also

DXWindow Members

WPF Application Themes

Ribbon Control Integration

DevExpress.Xpf.Core Namespace