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.FixedSize Property

Gets or sets a card’s width (or height).

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public double FixedSize { get; set; }

#Property Value

Type Description
Double

A Double value that specifies a card’s width or height.

#Remarks

Cards can be arranged in rows or columns. The layout of cards is specified by the CardView.CardLayout property.

By default, a card’s size (its width or height depending on the layout) is automatically calculated to display its content in an optimal way. As a result, different cards can have different sizes. To avoid this, and specify the same size for all cards displayed within a view, use the FixedSize property.

  • Row Layout

    The FixedSize property specifies the height of cards.

  • Column Layout

    The FixedSize property specifies the width of cards.

The minimum size to which a card can be resized is specified by the CardView.MinFixedSize property.

If the FixedSize property is specified and the CardView.AllowCardResizing property is set to true, an end-user can resize cards (change their width or height) by dragging a card separator.

To learn more, see Cards Layout.

See Also