Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CardView.CardAlignment Property

Gets or sets the alignment of cards within a view.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public Alignment CardAlignment { get; set; }

#Property Value

Type Description
DevExpress.Xpf.Core.Alignment

A DevExpress.Xpf.Core.Alignment enumeration value that specifies the alignment of cards within a view.

#Remarks

Cards can be arranged in rows or columns. The layout of cards is specified by the CardView.CardLayout property. The way cards are aligned within a view is specified by the CardAlignment property, and depends on the layout:

Row Layout

Card Alignment

Description

Center

Cards are centered within a view.

CardAlign_Row_Center

Far

Aligns the bottom edges of cards.

CardAlign_Row_Far

Near

Aligns the top edges of cards.

CardAlign_Row_Near

Column Layout

Card Alignment

Description

Center

Cards are centered within a view.

CardAlign_Column_Center

Far

Aligns the right edges of cards.

CardAlign_Column_Far

Near

Aligns the left edges of cards.

CardAlign_Column_Near

To learn more, see Cards Layout.

See Also