Back to Devexpress

BackstageItemWithImage Class

wpf-devexpress-dot-xpf-dot-ribbon-9787e030.md

latest3.2 KB
Original Source

BackstageItemWithImage Class

A base class for items with glyphs.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public class BackstageItemWithImage :
    BackstageItem
vb
Public Class BackstageItemWithImage
    Inherits BackstageItem

Remarks

The following code sample adds glyphs to the Home and File BackstageTabItems:

xaml
<dx:ThemedWindow
  ... 
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon">
  <dxr:RibbonControl>
    <dxr:RibbonControl.ApplicationMenu>
      <dxr:BackstageViewControl>
        <dxr:BackstageTabItem Content="Home" Glyph="{dx:SvgImageSource Uri='pack://application:,,,/RibbonDemo;component/Images/Icons/Home_16x16.svg'}">
          <dxr:BackstageTabItem.ControlPane>
            <!-- Tab Content -->
          </dxr:BackstageTabItem.ControlPane>
        </dxr:BackstageTabItem>
        <dxr:BackstageTabItem Content="New" Glyph="{dx:SvgImageSource Uri='pack://application:,,,/RibbonDemo;component/Images/Icons/New_16x16.svg'}">
          <dxr:BackstageTabItem.ControlPane>
            <!-- Tab Content -->
          </dxr:BackstageTabItem.ControlPane>
        </dxr:BackstageTabItem>
      </dxr:BackstageViewControl>
    </dxr:RibbonControl.ApplicationMenu>
    <!-- Ribbon Content -->
  </dxr:RibbonControl>
</dx:ThemedWindow>

Customize Glyphs

Use the GlyphContainerStyle and GlyphStyle properties to change the glyph’s appearance.

Inheritance

Show 12 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control BackstageItemBase BackstageItem BackstageItemWithImage BackstageButtonItem

BackstageTabItem

See Also

BackstageItemWithImage Members

DevExpress.Xpf.Ribbon Namespace