Themed Window
The ThemedWindow is a Window class descendant.
This window type supports the following features:
- DevExpress WPF themes;
Ribbon/Tab control integration. Add the RibbonControl or TabControl to your application and specify the ThemedWindow.WindowKind property to integrate the control into the application’s window:
<dx:ThemedWindow ... xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" WindowKind="Auto"> <Grid> <dxr:RibbonControl RibbonStyle="Office2010"> <!-- RibbonControl content --> </dxr:RibbonControl> </Grid> </dx:ThemedWindow>
How to Enable ThemedWindow in Code
Follow the steps below to replace the standard Window class with the ThemedWindow:
Change this:
to this:
Change this:
<Window x:Class="Example.MainWindow"
to this:
<dx:ThemedWindow x:Class="Example.MainWindow"
Add the missing reference:
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
How to Enable ThemedWindow with Smart Tag
Click the Convert to ThemedWindow Smart Tag element to convert the current Window to ThemedWindow:
Note
Convert to ThemedWindow element is available only when a window is selected.
The Smart Tag automatically updates XAML and CS code files.