Skip to main content

CardView.CardLayout Property

Gets or sets a value that specifies how cards are arranged within a Card View.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public CardLayout CardLayout { get; set; }

Property Value

Type Description
CardLayout

A CardLayout enumeration value that specifies how cards are arranged within a Card View.

Available values:

Name Description
Rows

Cards are arranged in rows.

CardsLayout_Rows

Columns

Cards are arranged in columns.

CardsLayout_Columns

Remarks

A Card View can arrange cards in columns or rows. This is specified by the CardLayout property.

By default, a Card View arranges cards in columns. The first card is displayed at a View’s top-left corner. Subsequent cards are positioned under the previous ones. If a card cannot be placed there without being truncated, it is placed at the top of the next column. Subsequent cards are positioned under this card, etc.

CardsLayout_Columns

Cards can also be arranged in rows. In this instance, set the CardLayout property to CardLayout.Rows. In this case, the first card is displayed at a View’s top left corner. Subsequent cards are positioned next to the previous ones. If a card cannot be entirely displayed, it is displayed on the next row, etc.

CardsLayout_Rows

The maximum number of cards in a row (or column) is specified by the CardView.MaxCardCountInRow property.

To learn more, see Cards Layout.

See Also