BackstageButtonItem Class

A button item within a BackstageView.

Namespace: DevExpress.UI.Xaml.Ribbon

Assembly: DevExpress.UI.Xaml.Ribbon.v18.2.dll

Declaration

public class BackstageButtonItem :
    RibbonButtonItemBase,
    IBackstageItem,
    IVisualItem,
    ISelectable,
    ISupportOwner<BackstageView>
Public Class BackstageButtonItem
    Inherits RibbonButtonItemBase
    Implements IBackstageItem,
               IVisualItem,
               ISelectable,
               ISupportOwner(Of BackstageView)

Remarks

The BackstageButtonItem represents a regular button. Use the Content property to place text or any object that will be displayed inside a button. The Icon property allows you to set an icon to be shown within the button.

Use the Command property to bind an action to your button. Alternatively, handle the Click or Tapped event.

If you want to place a button within a BackstageView, add a BackstageButtonItem class instance to the view's Items collection. To add a button in XAML, define a BackstageButtonItem object between the BackstageView opening and closing tags. See the example below.

<Ribbon:RibbonControl.BackstageView>
    <Ribbon:BackstageView>
        <Ribbon:BackstageButtonItem Content="Save" Command="{x:Bind ViewModel.SaveFileCommand}" />
    </Ribbon:BackstageView>
</Ribbon:RibbonControl.BackstageView>

Inheritance

Object
DevExpress.UI.Xaml.Internal.ContentControlEx
DevExpress.UI.Xaml.Internal.PointerItemBase
DevExpress.UI.Xaml.Internal.GlyphItemBase
DevExpress.UI.Xaml.Ribbon.Internal.RibbonItemBase
DevExpress.UI.Xaml.Ribbon.Internal.RibbonButtonItemBase
BackstageButtonItem

Implements

DevExpress.UI.Xaml.Ribbon.IFlyoutItem
DevExpress.UI.Xaml.Ribbon.IRibbonItemBase
DevExpress.UI.Xaml.Ribbon.Internal.ISupportRibbonState
DevExpress.UI.Xaml.IIconProvider
DevExpress.UI.Xaml.Ribbon.Internal.ISupportToolTip
DevExpress.UI.Xaml.Internal.IButtonBase
DevExpress.UI.Xaml.Internal.ISupportPointer
DevExpress.UI.Xaml.Ribbon.IBackstageItem
DevExpress.UI.Xaml.Internal.IVisualItem
DevExpress.UI.Xaml.Internal.ISelectable
DevExpress.UI.Xaml.Internal.ISupportOwner<BackstageView>
See Also