Ribbon Control Integration

  • 2 minutes to read

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