Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TabControl.TabStripPlacement Property

 

Gets or sets how tab headers align relative to the tab content.

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

[BindableAttribute(true)]
public Dock TabStripPlacement { get; set; }

Property Value

Type: System.Windows.Controls.Dock

The alignment of tab headers relative to tab content. The default is Top.

Identifier field

TabStripPlacementProperty

Metadata properties set to true

None

The following example creates a tab control that positions the tabs on the left side.

<TabControl TabStripPlacement="Left" Margin="0, 0, 0, 10">
  <TabItem Name="fontweight" Header="FontWeight">
    <TabItem.Content>
      <TextBlock TextWrapping="WrapWithOverflow">
        FontWeight property information goes here.
      </TextBlock>
    </TabItem.Content>
  </TabItem>

  <TabItem Name="fontsize" Header="FontSize">
    <TabItem.Content>
      <TextBlock TextWrapping="WrapWithOverflow">
        FontSize property information goes here.
      </TextBlock>
    </TabItem.Content>
  </TabItem>
</TabControl>

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