ToolBar.Orientation Property


Gets the orientation of the ToolBar.

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

public Orientation Orientation { get; }

Property Value

Type: System.Windows.Controls.Orientation

The toolbar orientation. The default is Horizontal.

This property gets its value from the parent ToolBarTray.

Identifier field


Metadata properties set to true


Legacy Code Example

The following example shows how to determine whether a ToolBar is vertical.

Code snippet is not found. Confirm that the code snippet name 'ToolBarOrient_snip' is correct.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft