All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Badge.CornerRadius Property

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

Namespace: DevExpress.Xpf.Core

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

Declaration

public CornerRadius? CornerRadius { get; set; }
Public Property CornerRadius As CornerRadius?

Property Value

Type Description
Nullable<CornerRadius>

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

Remarks

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.

NOTE

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.Badge>
    <dx:Badge Content="10" CornerRadius="5" />
  </dx:Badge.Badge>
</dx:SimpleButton>

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.Badge>
    <dx:Badge Content="10" CornerRadius="5,5,5,0" />
  </dx:Badge.Badge>
</dx:SimpleButton>
See Also