VariableSizedWrapGrid.ItemWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the width of the layout area for each item that is contained in a VariableSizedWrapGrid.
public:
property double ItemWidth { double get(); void set(double value); };
double ItemWidth();
void ItemWidth(double value);
public double ItemWidth { get; set; }
var double = variableSizedWrapGrid.itemWidth;
variableSizedWrapGrid.itemWidth = double;
Public Property ItemWidth As Double
<VariableSizedWrapGrid ItemWidth="double" />
-or-
<VariableSizedWrapGrid ItemWidth="Auto" />
Property Value
double
The width of the layout area for each item that is contained in a VariableSizedWrapGrid. The default is NaN. See Remarks below.
Remarks
"Auto" is not supported in XAML markup for this property.
If ItemWidth is NaN, then the VariableSizedWrapGrid uses the width 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.