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

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

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public double Width { get; set; }

#Property Value

Type Description
Double

A Double value that specifies the BadgeControl‘s width.

#Remarks

The following code sample sets the Badge.Height property to 25 and the Width property to 45:

WPF Badges - Height and Width Properties

<Button Content="Inbox">
  <dx:Badge.Badge>
    <dx:Badge Content="10" Height="25" Width="45"/>
  </dx:Badge.Badge>
</Button>
See Also