Back to Devexpress

Badge.VerticalAnchor Property

wpf-devexpress-dot-xpf-dot-core-dot-badge-ffcc6530.md

latest4.4 KB
Original Source

Badge.VerticalAnchor Property

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

Property Value

TypeDefaultDescription
VerticalAlignmentCenter

The VerticalAlignment value that specifies the BadgeControl‘s vertical anchor point.

|

Remarks

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

|

|

VerticalAnchor

| | --- | --- | |

VerticalAlignment

| | --- | |

Bottom

|

Center

|

Top

|

Stretch

| |

Bottom

|

|

|

|

| |

Center

|

|

|

|

| |

Top

|

|

|

|

| |

Stretch

|

|

|

|

|

Note

When Badge.VerticalAnchor is Stretch , the anchor point gets its value from the Badge.VerticalAlignment property.

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

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

See Also

Badge.HorizontalAnchor Property

Badge.HorizontalAlignment Property

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace