Ribbon Control Integration
Integration With the ThemedWindow
Use the WindowKind property to integrate the RibbonControl with a window:
<dx:ThemedWindow x:Class="Example.MainWindow"
...
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" WindowKind="Ribbon">
The following image illustrates the result:
DXRibbonWindow
Tip
This section is outdated. Use the WindowKind property to integrate the RibbonControl with a window.
The DXRibbonWindow is a window that supports integration with a RibbonControl. Once you define a RibbonControl at the top of the DXRibbonWindow, the control is displayed as a part of the window:
- a part of the Application Button is displayed within the window’s title bar.
- the Ribbon Quick Access Toolbar is also displayed within the window’s title bar (when it’s position is RibbonQuickAccessToolbarShowMode.ShowAbove).
Note
DXRibbonWindow is not designed to be used without a RibbonControl. To correctly integrate a RibbonControl with a DXRibbonWindow, the RibbonControl must be displayed at the top of the window.
Create a DXRibbonWindow
To replace the standard Window class in your application with the DXRibbonWindow, do the following:
In your code file (.cs), change:
public partial class MainWindow : Window { //...
to:
using DevExpress.Xpf.Ribbon; public partial class MainWindow : DXRibbonWindow { //...
In a XAML file, change:
<Window x:Class="Example.MainWindow"
to:
<dxr:DXRibbonWindow x:Class="Example.MainWindow" ... xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"