Class RibbonBackstage
Represents a container that manages the user and application settings in a RibbonBackstage.
Inheritance
System.Object
RibbonBackstage
Implements
System.IDisposable
Namespace: Syncfusion.UI.Xaml.Ribbon
Assembly: Syncfusion.Ribbon.WinUI.dll
Syntax
public sealed class RibbonBackstage : ContentControl, IDisposable
Remarks
This control acts as a container for any view to be loaded as the backstage view for see cref="SfRibbon"/>, which is displayed when the ribbon backstage menu button is clicked.
Examples
The code example below shows how to add RibbonBackstage control with user and application settings.
<syncfusion:RibbonBackstage Target="{Binding ElementName=rootGrid}">
<syncfusion:BackstageView ShowBackButton="True" >
< syncfusion:BackstageView.Items>
<syncfusion:BackstageViewTabItem Header="New"
Icon="NewFolder">
<local:Sample1 />
</syncfusion:BackstageViewTabItem>
<syncfusion:BackstageViewTabItem Header="Open" >
< syncfusion:BackstageViewTabItem.Icon>
<FontIcon Glyph="" />
</ syncfusion:BackstageViewTabItem.Icon>
<local:Sample2 />
</syncfusion:BackstageViewTabItem>
<syncfusion:BackstageViewItemSeparator />
<syncfusion:BackstageViewTabItem Header="Info" >
< local:Sample1 />
</syncfusion:BackstageViewTabItem>
<syncfusion:BackstageViewButtonItem Command="{x:Bind SaveCommand}"
Header="Save">
<syncfusion:BackstageViewButtonItem.Icon>
<FontIcon Glyph="" />
</ syncfusion:BackstageViewButtonItem.Icon>
</syncfusion:BackstageViewButtonItem>
<syncfusion:BackstageViewButtonItem Command="{x:Bind CloseButtonCommand}"
Header="Close" />
</syncfusion:BackstageView.Items>
<syncfusion:BackstageView.FooterItems>
<syncfusion:BackstageViewItemSeparator />
<syncfusion:BackstageViewTabItem Header="Account" >
< local:Sample2 />
</syncfusion:BackstageViewTabItem>
<syncfusion:BackstageViewTabItem Header="FeedBack" >
< local:Sample1 />
</syncfusion:BackstageViewTabItem>
<syncfusion:BackstageViewButtonItem Command="{x:Bind OptionCommand}"
Header="Option" />
</syncfusion:BackstageView.FooterItems>
</syncfusion:BackstageView>
</syncfusion:RibbonBackstage>
Constructors
RibbonBackstage()
Initializes a new instance of the RibbonBackstage class.
Declaration
public RibbonBackstage()
Fields
TargetProperty
Identifies the Target dependency property.
Declaration
public static readonly DependencyProperty TargetProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
Target
Gets or sets the UI element to use as the RibbonBackstage placement target.
Declaration
public FrameworkElement Target { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.FrameworkElement | The element to use as the RibbonBackstage's placement target. The default value is |
Methods
Dispose()
Release the unmanaged resources of RibbonBackstage.
Declaration
public void Dispose()
OnApplyTemplate()
Contains the template logic of RibbonBackstage.
Declaration
protected override void OnApplyTemplate()
Implements
System.IDisposable