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.VerticalContentAlignment Property

Gets or sets the content's vertical alignment within the BadgeControl container. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

Declaration

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

Property Value

Type Default Description
VerticalAlignment

Center

The VerticalAlignment value that specifies the BadgeControl content's vertical alignment.

Remarks

NOTE

The Badge.VerticalContentAlignment property is only applicable if the Badge.VerticalAlignment is set to Stretch.

The following table lists the available Badge.VerticalContentAlignment values:

Value Figure
Bottom WPF Badges - VerticalContentAlignment.Bottom
Center WPF Badges - VerticalContentAlignment.Center
Top WPF Badges - VerticalContentAlignment.Top
Stretch WPF Badges - VerticalContentAlignment.Stretch

The following code sample sets the Badge.VerticalContentAlignment to Top:

<dx:SimpleButton ...>
  <dx:Badges.Badge>
    <dx:Badge Content="10" VerticalAlignment="Stretch" 
    VerticalContentAlignment="Top" />
  </dx:Badges.Badge>
</dx:SimpleButton>
See Also