A newer version of this page is available. Switch to the current version.

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:

WindowKind-Ribbon

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:

DXRibbonWindow

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"
    

Examples