TabItem.TabStripPlacement Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the tab strip placement.

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

public Dock TabStripPlacement { get; }

Property Value

Type: System.Windows.Controls.Dock

One of the Dock values. The default is Dock.Top.

This property cannot be set. It gets its value from the TabControl.TabStripPlacement property of the parent TabControl.

Identifier field

TabStripPlacementProperty

Metadata properties set to true

None

The following example shows how to retrieve TabStripPlacement information about a TabItem.

if(tabItem1.TabStripPlacement == Dock.Left)
  {
   btnPlacement.Content = "TabItems are placed on the left";
  }

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Return to top
Show: