Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Badge.BadgeShape Property

Gets or sets the BadgeControl‘s shape. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public BadgeShape? BadgeShape { get; set; }

#Property Value

Type Default Description
Nullable<BadgeShape> Pill

A Nullable BadgeShape enumeration value.

Available values:

Name Description
Pill

Specifies a pill.

Rectangle

Specifies a rectangle.

RoundedRectangle

Specifies a rounded rectangle.

#Remarks

The following code sample creates the rectangle Badge:

WPF Badges - BadgeShape Property

<dx:SimpleButton ...>
  <dx:Badge.Badge>
    <dx:Badge Content="10" BadgeShape="Rectangle" />
  </dx:Badge.Badge>
</dx:SimpleButton>
See Also