VariableSizedWrapGrid.RowSpan attached property

VariableSizedWrapGrid.RowSpan attached property

Gets or sets a value that indicates the total number of rows that the element content spans within a parent VariableSizedWrapGrid.

<object VariableSizedWrapGrid.RowSpan="int"/>

XAML Values


The number of VariableSizedWrapGrid rows that the element should span, as a value between 1 and the maximum row count. See Remarks.


VariableSizedWrapGrid.RowSpan is an attached property, which supports a XAML usage. When setting this property in code, use SetRowSpan instead. When getting this property in code, use GetRowSpan instead. In code usages, the target parameter is the object where the attached property value is set. Another way to get or set the value in code is to use the dependency property system, calling either GetValue or SetValue and passing RowSpanProperty as the dependency property identifier.

A VariableSizedWrapGrid.RowSpan value is interpreted by the most immediate parent VariableSizedWrapGrid element from where the value is set.

Zero or negative integer values for VariableSizedWrapGrid.RowSpan are not permitted. Values that are greater than the total number of rows are treated as if they specified the total number and will span all rows.

Requirements (Windows 10 device family)

Device family

API contract




Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]





See also

Attached properties overview
Define layouts with XAML
Quickstart: Adding layout controls



© 2017 Microsoft