BackstageViewControl Class

A main menu for Ribbon UI, inspired by the menus found in MS Office 2010-2016.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public class BackstageViewControl :
    Control,
    IBarAndDockingControllerClient,
    IToolTipControlClient,
    ISupportXtraAnimation,
    IXtraAnimationListener,
    IBarManagerListener,
    IKeyTipsOwnerControl,
    ISupportInitialize,
    IGestureClient
Public Class BackstageViewControl
    Inherits Control
    Implements IBarAndDockingControllerClient,
               IToolTipControlClient,
               ISupportXtraAnimation,
               IXtraAnimationListener,
               IBarManagerListener,
               IKeyTipsOwnerControl,
               ISupportInitialize,
               IGestureClient

Related API Members

The following members accept/return BackstageViewControl objects:

Remarks

The BackstageViewControl allows you to emulate a menu found in Microsoft Office 2010-2016 products. At the left edge, this menu displays regular and tab items. Alternatively, it can be used as a multi-level stand-alone navigation control (see the BackstageView Control topic for details). Regular items act as buttons, while tab items act as tab pages within a tab control. When you select a tab item, its contents are displayed in the BackstageViewControl's right area. The following figure illustrates a sample BackstageViewControl in two different styles.

BackstageViewControl

To use a BackstageViewControl as a menu within a RibbonControl, create and set up a BackstageViewControl object and then assign it to the RibbonControl.ApplicationButtonDropDownControl property. When displayed within a RibbonControl, the BackstageViewControl fills the window in its entirety.

To add items, use the BackstageViewControl.Items collection. The following objects represent the available items:

It is possible to display a custom background image in the BackstageViewControl. This image, specified by the BackstageViewControl.Image property, is always anchored to the control's bottom right corner. To display the image, ensure that the BackstageViewControl.ShowImage property is set to true.

Depending on the BackstageViewControl.Style property value, a BackstageViewControl can emulate a behavior similar to the one found in the Microsoft Office 2013. With the Office 2013 style applied, a BackstageView control has the following features:

  • occupies the entire window upon display;
  • displays the 'Back' button to navigate back to the parent RibbonControl;
  • uses animation effects when shown/hidden.

Normally, you do not need to set the BackstageViewControl's style manually. If the RibbonControl's style is set to Office 2013 (the RibbonControl.RibbonStyle property), it will automatically change the style of a corresponding BackstageViewControl assigned to its RibbonControl.ApplicationButtonDropDownControl property.

Inheritance

See Also