ThemedWindow Class
Represents a window that supports DevExpress WPF themes and Ribbon/Tab control integration.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v19.1.dll
Declaration
public class ThemedWindow :
Window,
IRibbonWindow,
IHeaderItemsControlHost,
IBackButtonSupport,
IWindowSurrogate
Related API Members
The following members return ThemedWindow objects:
Remarks
The ThemedWindow is a Window class descendant. It supports all the features provided by the Window class. In addition, it features DevExpress WPF theme support capability, so the window’s look and feel is consistent with other DevExpress controls.
Use the ThemedWindow.WindowKind property to seamlessly integrate the RibbonControl or DXTabControl into your window.
To replace the standard Window class in your application with the ThemedWindow
, do the following:
In your code file (.cs), change:
public partial class MainWindow : Window { //...
to:
using DevExpress.Xpf.Core; public partial class MainWindow : ThemedWindow { //...
In an XAML file, change:
<Window x:Class="Example.MainWindow"
to:
<dx:ThemedWindow x:Class="Example.MainWindow" ... xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ThemedWindow 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.