Back to Devexpress

Badge.BadgeShape Property

wpf-devexpress-dot-xpf-dot-core-dot-badge-bd4d8362.md

latest1.9 KB
Original Source

Badge.BadgeShape Property

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

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public BadgeShape? BadgeShape { get; set; }
vb
Public Property BadgeShape As BadgeShape?

Property Value

TypeDefaultDescription
Nullable<BadgeShape>Pill

A Nullable BadgeShape enumeration value.

|

Available values:

NameDescription
Pill

Specifies a pill.

| | Rectangle |

Specifies a rectangle.

| | RoundedRectangle |

Specifies a rounded rectangle.

|

Remarks

The following code sample creates the rectangle Badge :

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

See Also

Badge.CornerRadius Property

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace