Back to Devexpress

Badge.BadgeKind Property

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

latest2.6 KB
Original Source

Badge.BadgeKind Property

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

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public BadgeKind BadgeKind { get; set; }
vb
Public Property BadgeKind As BadgeKind

Property Value

TypeDefaultDescription
BadgeKindInformation

A BadgeKind enumeration value.

|

Available values:

NameDescription
Success

Specifies a success badge.

| | Warning |

Specifies a warning badge.

| | Error |

Specifies an error badge.

| | Information |

Specifies an information badge.

| | None |

Specifies a badge with a transparent background.

|

Remarks

The BadgeKind is the predefined set of the Badge.Foreground, Badge.Background, Badge.BorderBrush, and Badge.BorderThickness property values. You can override the BadgeKind with any of the these properties.

The following code sample creates the error badge:

xaml
<dx:SimpleButton ...>
  <dx:Badge.Badge>
    <dx:Badge Content="10" BadgeKind="Error" />
  </dx:Badge.Badge>
</dx:SimpleButton>

Tip

Refer to the Customize the Appearance section to get more information on the Badge’s appearance properties.

See Also

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace