Skip to main content

RibbonPage.Badge Property

Gets or sets the RibbonPage’s BadgeControl. This is a dependency property.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Ribbon

Declaration

public Badge Badge { get; set; }

Property Value

Type Description
Badge

The badge.

Remarks

The following code sample displays a RibbonPage with a BadgeControl:

WPF RibbonPage - Badge property

<dx:ThemedWindow 
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon">
  ...
    <dxr:RibbonPage Caption="Badges">
      <dxr:RibbonPage.Badge>
        <dx:Badge Content="NEW" BadgeKind="Success" BadgeShape="Rectangle" ... />
      </dxr:RibbonPage.Badge>
    </dxb:RibbonPage>
  ...
</dx:ThemedWindow>
See Also