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.BadgeKind Property

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

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public BadgeKind BadgeKind { get; set; }

#Property Value

Type Default Description
BadgeKind Information

A BadgeKind enumeration value.

Available values:

Name Description
Success

Specifies a success badge.

WPF Badge Kind - Success

Warning

Specifies a warning badge.

WPF Badge Kind - Warning

Error

Specifies an error badge.

WPF Badge Kind - Error

Information

Specifies an information badge.

WPF Badge Kind - Information

None

Specifies a badge with a transparent background.

WPF Badge Kind - None

#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:

WPF Badges - Information Badge

<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