Back to Devexpress

Badge.VerticalContentAlignment Property

wpf-devexpress-dot-xpf-dot-core-dot-badge-4c433432.md

latest2.6 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDefaultDescription
VerticalAlignmentCenter

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:

ValueFigure
Bottom
Center
Top
Stretch

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

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

See Also

Badge.HorizontalContentAlignment Property

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace