WrapGrid.ItemHeight Property

Definition

Gets or sets the height of the layout area for each item that is contained in a WrapGrid.

public:
 property double ItemHeight { double get(); void set(double value); };
double ItemHeight();

void ItemHeight(double value);
public double ItemHeight { get; set; }
var double = wrapGrid.itemHeight;
wrapGrid.itemHeight = double;
Public Property ItemHeight As Double
<WrapGrid ItemHeight="double" />

Property Value

Double

double

The height of the layout area for each item that is contained in a WrapGrid. The default is NaN. See Remarks below.

Remarks

"Auto" is not supported in XAML markup for this property.

If ItemHeight is NaN, then the WrapGrid uses the height of the first cell.

Note

In C#, you can obtain NaN from Double.NaN.

In C++, you can obtain NaN by using the NAN macro or std::numeric_limits<double>::quiet_NaN.

Do not use the == operator to test for NaN.

In C#, use Double.IsNaN() to test for NaN.

In C++, use isnan() to test for NaN.

Applies to

See also