ToolBar.Orientation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the orientation of the ToolBar.
public:
property System::Windows::Controls::Orientation Orientation { System::Windows::Controls::Orientation get(); };
public System.Windows.Controls.Orientation Orientation { get; }
member this.Orientation : System.Windows.Controls.Orientation
Public ReadOnly Property Orientation As Orientation
Property Value
The toolbar orientation. The default is Horizontal.
Examples
The following example shows how to determine whether a ToolBar is vertical.
if (tb1.Orientation == Orientation.Vertical)
{
btnText.Content = "This is a vertical toolbar.";
}
If tb1.Orientation = Orientation.Vertical Then
btnText.Content = "This is a vertical toolbar."
End If
Remarks
This property gets its value from the parent ToolBarTray.
Dependency Property Information
Identifier field | OrientationProperty |
Metadata properties set to true |
None |
Applies to
See also
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.