Back to Devexpress

CardView.FixedSize Property

wpf-devexpress-dot-xpf-dot-grid-dot-cardview-7f378922.md

latest2.2 KB
Original Source

CardView.FixedSize Property

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

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public double FixedSize { get; set; }
vb
Public Property FixedSize As Double

Property Value

TypeDescription
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

  • Column Layout

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

AllowCardResizing

MinFixedSize

CardView Class

CardView Members

DevExpress.Xpf.Grid Namespace