All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.2.dll

Declaration

public VerticalAlignment VerticalAnchor { get; set; }
Public Property VerticalAnchor As VerticalAlignment

Property Value

Type Default Description
VerticalAlignment

Center

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

WPF Badges - VerticalAlignment.Bottom and VerticalAnchor.Bottom

WPF Badges - VerticalAlignment.Bottom and VerticalAnchor.Center

WPF Badges - VerticalAlignment.Bottom and VerticalAnchor.Top

WPF Badges - VerticalAlignment.Bottom and VerticalAnchor.Stretch

Center

WPF Badges - VerticalAlignment.Center and VerticalAnchor.Bottom

WPF Badges - VerticalAlignment.Center and VerticalAnchor.Center

WPF Badges - VerticalAlignment.Center and VerticalAnchor.Top

WPF Badges - VerticalAlignment.Center and VerticalAnchor.Stretch

Top

WPF Badges - VerticalAlignment.Top and VerticalAnchor.Bottom

WPF Badges - VerticalAlignment.Top and VerticalAnchor.Center

WPF Badges - VerticalAlignment.Top and VerticalAnchor.Top

WPF Badges - VerticalAlignment.Top and VerticalAnchor.Stretch

Stretch

WPF Badges - VerticalAlignment.Stretch and VerticalAnchor.Bottom

WPF Badges - VerticalAlignment.Stretch and VerticalAnchor.Center

WPF Badges - VerticalAlignment.Stretch and VerticalAnchor.Top

WPF Badges - VerticalAlignment.Stretch and VerticalAnchor.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:

<dx:SimpleButton ...>
  <dx:Badges.Badge>
    <dx:Badge Content="10" VerticalAnchor="Bottom" VerticalAlignment="Bottom" />
  </dx:Badges.Badge>
</dx:SimpleButton>
See Also