Share via


Orientation

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

Gets or sets the dimension by which child elements are stacked.

<StackPanel Orientation="Vertical" .../>
-or-
<StackPanel Orientation="Horizontal" .../>
value = object.Orientation
object.Orientation = value

Property Value

Type: string

A string to specify the orientation. Can be either Vertical or Horizontal.

This property is read/write. The default is Vertical.

Managed Equivalent

Orientation

Applies To

StackPanel

Version Information

Silverlight 2