Back to Devexpress

CardView.CardLayout Property

wpf-devexpress-dot-xpf-dot-grid-dot-cardview-1961e5a7.md

latest2.6 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public CardLayout CardLayout { get; set; }
vb
Public Property CardLayout As CardLayout

Property Value

TypeDescription
CardLayout

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

|

Available values:

NameDescription
Rows

Cards are arranged in rows.

| | Columns |

Cards are arranged in 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.

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.

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

CardView Class

CardView Members

DevExpress.Xpf.Grid Namespace