AutomationOrientation Enumeration

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

Specifies the orientation direction in which a control can be presented.

Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows (in System.Windows.dll)


Public Enumeration AutomationOrientation
public enum AutomationOrientation


Member name Description
Supported by Silverlight for Windows Phone None The control does not have an orientation.
Supported by Silverlight for Windows Phone Horizontal The control is presented horizontally.
Supported by Silverlight for Windows Phone Vertical The control is presented horizontally.


An Orientation automation property can be set by the peer for a control (such as ScrollBarAutomationPeer) by overriding GetOrientationCore. Generally such an implementation would report the value of a dedicated property of the peer's owner control (for instance ScrollBar.Orientation). An Orientation automation property cannot be set as an instance-level automation property.

Generally if an Orientation automation property is reported, it is tied to a dedicated Orientation property of the owner control class.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

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


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