Skip to main content

Badge.CornerRadius Property

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v23.1.dll

NuGet Package: DevExpress.Wpf.Core


public CornerRadius? CornerRadius { get; set; }

Property Value

Type Description

A Nullable CornerRadius value that specifies the Badge‘s corner radius.


This property can have one or four values. The four values for each radius are given in the top-left, top-right, bottom-right, bottom-left order.


When the CornerRadius property is not Null, the Badge ignores the Badge.BadgeShape property.

The following code sample sets the CornerRadius property to 5:

WPF Badges - CornerRadius is 5

<dx:SimpleButton ...>
    <dx:Badge Content="10" CornerRadius="5" />

The following code sample sets the radius of the top-left/top-right/bottom-right corners to 5 and the bottom-left corner to 0:

WPF Badges - CornerRadius is 5,5,5,0

<dx:SimpleButton ...>
    <dx:Badge Content="10" CornerRadius="5,5,5,0" />
See Also