Badge.CornerRadius Property
In This Article
Gets or sets the BadgeControl‘s corner radius. This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public CornerRadius? CornerRadius { get; set; }
#Property Value
Type | Description |
---|---|
Nullable<Corner |
A Nullable Corner |
#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 Corner
The following code sample sets the CornerRadius property to 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:
<dx:SimpleButton ...>
<dx:Badge.Badge>
<dx:Badge Content="10" CornerRadius="5,5,5,0" />
</dx:Badge.Badge>
</dx:SimpleButton>
See Also