BackstageButtonItem Class

A button item within a BackstageView.

Namespace: DevExpress.UI.Xaml.Ribbon

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

Declaration

public class BackstageButtonItem :
    RibbonButtonItemBase,
    IFlyoutItem,
    IRibbonItemBase,
    ISupportRibbonState,
    IIconProvider,
    ISupportToolTip,
    IButtonBase,
    ISupportPointer,
    IBackstageItem,
    IVisualItem,
    ISelectable,
    ISupportOwner<BackstageView>
Public Class BackstageButtonItem
    Inherits RibbonButtonItemBase
    Implements IFlyoutItem,
               IRibbonItemBase,
               ISupportRibbonState,
               IIconProvider,
               ISupportToolTip,
               IButtonBase,
               ISupportPointer,
               IBackstageItem,
               IVisualItem,
               ISelectable,
               ISupportOwner(Of BackstageView)

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

See Also