menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BackstageViewItemSeparator - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BackstageViewItemSeparator

    Represents a control that is used to separate the backstage view items in a BackstageView control.

    Inheritance
    System.Object
    BackstageViewItemSeparator
    Implements
    IBackstageViewItem
    Namespace: Syncfusion.UI.Xaml.Ribbon
    Assembly: Syncfusion.Ribbon.WinUI.dll
    Syntax
    public class BackstageViewItemSeparator : Control, IBackstageViewItem
    Remarks

    A BackstageViewItemSeparator control draws a horizontal line between backstage view items, such as BackstageViewButtonItem and BackstageViewTabItem. and this control does not interact any keyboard, mouse, mouse wheel, or tablet input interaction and cannot be enabled or selected.

    Examples

    The code example below shows how to add BackstageViewItemSeparator control between BackstageViewButtonItem and BackstageViewTabItem controls.

     <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="&#xED25;" />
                      </syncfusion:BackstageViewTabItem.Icon>
                      <local:Sample2 />
                  </syncfusion:BackstageViewTabItem>
                  <syncfusion:BackstageViewItemSeparator />            
                  <syncfusion:BackstageViewButtonItem Command="{x:Bind SaveCommand}"
                                                      Header="Save">
                      <syncfusion:BackstageViewButtonItem.Icon>
                          <FontIcon Glyph="&#xED25;" />
                      </ syncfusion:BackstageViewButtonItem.Icon>
                  </syncfusion:BackstageViewButtonItem>
                  <syncfusion:BackstageViewButtonItem Command="{x:Bind CloseButtonCommand}"
                                                      Header="Close" />
          </syncfusion:BackstageView.Items>         
     </syncfusion:RibbonBackstage>

    Constructors

    BackstageViewItemSeparator()

    Initializes a new instance of the BackstageViewItemSeparator class.

    Declaration
    public BackstageViewItemSeparator()

    Properties

    Header

    Gets or sets the content for the IBackstageViewItem's header.

    Declaration
    public object Header { get; set; }
    Property Value
    Type
    System.Object

    Icon

    Gets or sets an icon that appears in a IBackstageViewItem.

    Declaration
    public IconElement Icon { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.Controls.IconElement

    Implements

    IBackstageViewItem
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved