Back to Devexpress

BackstageItemBase.Placement Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-backstageitembase-49acd3b7.md

latest2.8 KB
Original Source

BackstageItemBase.Placement Property

Gets or sets the backstage item’s postition. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public BackstageItemPlacement Placement { get; set; }
vb
Public Property Placement As BackstageItemPlacement

Property Value

TypeDescription
BackstageItemPlacement

The BackstageItemPlacement value that specifies the backstage item’s postition.

|

Available values:

NameDescription
Top

The backstage item is displayed at the top.

| | Bottom |

The backstage item is displayed at the bottom.

|

Remarks

The following code sample displays the Close, Options, and About BackstageButtonItems at the bottom of the BackStageView :

xaml
<dx:ThemedWindow
  ...
  xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon">
  <!-- ... -->
  <dxr:RibbonControl>
    <dxr:RibbonControl.ApplicationMenu>
      <dxr:BackstageViewControl>
        <dxr:BackstageViewControl.Items>
          <!-- ... -->
          <dxr:BackstageSeparatorItem/>
          <dxr:BackstageButtonItem Content="Close" Placement="Top"/>
          <dxr:BackstageSeparatorItem/>
          <dxr:BackstageButtonItem Content="Close" Placement="Bottom"/>
          <dxr:BackstageButtonItem Content="Options" Placement="Bottom"/>
          <dxr:BackstageButtonItem Content="About" Placement="Bottom"//>
          </dxr:BackstageViewControl.Items>
      </dxr:BackstageViewControl>
    </dxr:RibbonControl.ApplicationMenu>
  </dxr:RibbonControl>
</dx:ThemedWindow>

Tip

You can use the BackstageItemWithImage.Glyph to specify a BackstageTabItem‘s or BackstageButtonItem‘s glyph.

See Also

Glyph

BackstageItemBase Class

BackstageItemBase Members

DevExpress.Xpf.Ribbon Namespace