DXWindow Class
Represents a window that supports DX themes.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v19.1.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.
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"
Related GitHub Examples
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.