Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.36 KB

wrapgrid_itemwidth.md

File metadata and controls

44 lines (32 loc) · 1.36 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.WrapGrid.ItemWidth
winrt property

Microsoft.UI.Xaml.Controls.WrapGrid.ItemWidth

-description

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

-xaml-syntax

<WrapGrid ItemWidth="double" />

-property-value

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

-remarks

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

If ItemWidth is the special value NaN, then the WrapGrid uses the width of the first cell.

Note

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

In C++, you can obtain the NaN value 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.

-examples

-see-also

ItemHeight