ToolBarTray::Orientation Property
.NET Framework (current version)
Specifies the orientation of a ToolBarTray.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property Orientation Orientation { Orientation get(); void set(Orientation value); }
Property Value
Type: System.Windows.Controls::OrientationOne of the Orientation values. The default is Orientation::Horizontal.
The following example shows how to use the Orientation property to set the orientation of the tool bar tray; this determines the orientation of the tool bar.
<ToolBarTray Orientation="Vertical" Background="White" > <ToolBar Band="1" BandIndex="1"> <Button> <Image Source="toolbargraphics\copy.bmp" /> </Button> <Button> <Image Source="toolbargraphics\paste.bmp" /> </Button> </ToolBar> <ToolBar Band="2" BandIndex="1"> <Button> <Image Source="toolbargraphics\undo.bmp" /> </Button> <Button> <Image Source="toolbargraphics\redo.bmp" /> </Button> </ToolBar> </ToolBarTray>
.NET Framework
Available since 3.0
Available since 3.0
Show: