Skip to main content

BackstageButtonItem Class

A button item within a BackstageView.

Namespace: DevExpress.UI.Xaml.Ribbon

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

NuGet Package: DevExpress.Uwp.Controls

Declaration

[Bindable]
public class BackstageButtonItem :
    RibbonButtonItemBase,
    IBackstageItem,
    IVisualItem,
    ISelectable,
    ISupportOwner<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

Show 12 items
Object
DependencyObject
Windows.UI.Xaml.UIElement
FrameworkElement
Control
Windows.UI.Xaml.Controls.ContentControl
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