VariableSizedWrapGrid.ColumnSpan attached property

Applies to Windows and Windows Phone

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


<object VariableSizedWrapGrid.ColumnSpan="int"/>

XAML Values

int

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

Remarks

VariableSizedWrapGrid.ColumnSpan is an attached property, which supports a XAML usage. When setting this property in code, use SetColumnSpan instead. When getting this property in code, use GetColumnSpan 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 ColumnSpanProperty as the dependency property identifier.

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

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls

Metadata

Windows.winmd

See also

VariableSizedWrapGrid
Attached properties overview
Quickstart: Defining layouts
Quickstart: Adding layout controls

 

 

Show:
© 2014 Microsoft