Badge.HorizontalAnchor Property
In This Article
Gets or sets a BadgeControl‘s horizontal anchor point. This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public HorizontalAlignment HorizontalAnchor { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Horizontal |
Center | The Horizontal |
#Remarks
The following table lists the combinations of the Badge.HorizontalAnchor and Badge.HorizontalAlignment values :
| Horizontal | |||
---|---|---|---|---|
Horizontal | ||||
Left | Center | Right | Stretch | |
Left | ||||
Center | ||||
Right | ||||
Stretch |
Note
When Badge.
The following code sample sets the Badge.HorizontalAnchor and Badge.HorizontalAlignment properties to Left:
<dx:SimpleButton ...>
<dx:Badge.Badge>
<dx:Badge Content="10" HorizontalAnchor="Left" HorizontalAlignment="Left" />
</dx:Badge.Badge>
</dx:SimpleButton>
See Also