Badge.VerticalContentAlignment Property
In This Article
Gets or sets the content’s vertical alignment within the BadgeControl container. This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public VerticalAlignment VerticalContentAlignment { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Vertical |
Center | The Vertical |
#Remarks
Note
The Badge.
The following table lists the available Badge.VerticalContentAlignment values:
Value | Figure |
---|---|
Bottom | ![]() |
Center | ![]() |
Top | ![]() |
Stretch | ![]() |
The following code sample sets the Badge.VerticalContentAlignment to Top:
<dx:SimpleButton ...>
<dx:Badge.Badge>
<dx:Badge Content="10" VerticalAlignment="Stretch"
VerticalContentAlignment="Top" />
</dx:Badge.Badge>
</dx:SimpleButton>
See Also