다음을 통해 공유


Grid.Row Attached Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates which row child content within a Grid should appear in.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
See GetRow, SetRow
See GetRow, SetRow
<object Grid.Row="int"/>

Property Value

Type: System.Int32
An Int32 value that represents the row in which child content should appear. The default value is 0.

Remarks

Dependency property identifier field: RowProperty

Rows in a Grid are defined using the RowDefinition element.

Examples

The following example displays a TextBlock that is positioned in the fourth row.

<TextBlock Margin="5" Grid.Row="3" Grid.Column="0">1st Column, 4th Row</TextBlock>

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.