Back to Devexpress

CardView.CardAlignment Property

wpf-devexpress-dot-xpf-dot-grid-dot-cardview-225dcf20.md

latest2.4 KB
Original Source

CardView.CardAlignment Property

Gets or sets the alignment of cards within a view.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public Alignment CardAlignment { get; set; }
vb
Public Property CardAlignment As Alignment

Property Value

TypeDescription
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.

| |

Far

|

Aligns the bottom edges of cards.

| |

Near

|

Aligns the top edges of cards.

|

Column Layout

|

Card Alignment

|

Description

| | --- | --- | |

Center

|

Cards are centered within a view.

| |

Far

|

Aligns the right edges of cards.

| |

Near

|

Aligns the left edges of cards.

|

To learn more, see Cards Layout.

See Also

Card View

CardView Class

CardView Members

DevExpress.Xpf.Grid Namespace