Back to Devexpress

Badge.VerticalAlignment Property

wpf-devexpress-dot-xpf-dot-core-dot-badge-1776ed24.md

latest4.5 KB
Original Source

Badge.VerticalAlignment Property

Gets or sets the BadgeControl‘s vertical 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 VerticalAlignment VerticalAlignment { get; set; }
vb
Public Property VerticalAlignment As VerticalAlignment

Property Value

TypeDefaultDescription
VerticalAlignmentTop

A VerticalAlignment enumeration value that specifies the BadgeControl‘s vertical alignment.

|

Remarks

The following table lists the combinations of the Badge.VerticalAlignment and Badge.VerticalAnchor values:

|

|

VerticalAnchor

| | --- | --- | |

VerticalAlignment

| | --- | |

Bottom

|

Center

|

Top

|

Stretch

| |

Bottom

|

|

|

|

| |

Center

|

|

|

|

| |

Top

|

|

|

|

| |

Stretch

|

|

|

|

|

Note

When the Badge.VerticalAlignment property is Stretch , the Badge.VerticalAnchor property is ignored.

The following code sample sets the Badge.VerticalAlignment and Badge.VerticalAnchor properties to Bottom :

xaml
<dx:SimpleButton ...>
  <dx:Badge.Badge>
    <dx:Badge Content="10" VerticalAlignment="Bottom" VerticalAnchor="Bottom" />
  </dx:Badge.Badge>
</dx:SimpleButton>

See Also

Badge.VerticalAnchor Property

Badge.HorizontalAlignment Property

Badge.HorizontalAnchor Property

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace