Skip to main content
A newer version of this page is available. .

CardView.FixedSize Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FixedSize property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also