Back to Devexpress

Badge.HorizontalAlignment Property

wpf-devexpress-dot-xpf-dot-core-dot-badge-120f22b9.md

latest4.6 KB
Original Source

Badge.HorizontalAlignment Property

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

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public HorizontalAlignment HorizontalAlignment { get; set; }
vb
Public Property HorizontalAlignment As HorizontalAlignment

Property Value

TypeDefaultDescription
HorizontalAlignmentRight

A HorizontalAlignment enumeration value that specifies the badge’s horizontal alignment.

|

Remarks

The following table lists the combinations of the Badge.HorizontalAlignment and Badge.HorizontalAnchor values:

|

|

HorizontalAnchor

| | --- | --- | |

HorizontalAlignment

| | --- | |

Left

|

Center

|

Right

|

Stretch

| |

Left

|

|

|

|

| |

Center

|

|

|

|

| |

Right

|

|

|

|

| |

Stretch

|

|

|

|

|

Note

When the Badge.HorizontalAlignment property is Stretch , the Badge.HorizontalAnchor property is ignored.

The following code sample sets the Badge.HorizontalAlignment and Badge.HorizontalAnchor properties to Left :

xaml
<dx:SimpleButton ...>
  <dx:Badge.Badge>
    <dx:Badge Content="10" HorizontalAlignment="Left" HorizontalAnchor="Left" />
  </dx:Badge.Badge>
</dx:SimpleButton>

See Also

Badge.VerticalAlignment Property

Badge.HorizontalAnchor Property

Badge.HorizontalContentAlignment Property

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace