Table of Contents
AutoRotate Property

Gets or sets a value that indicates whether the items header is auto-rotated or not. This is a dependency property.

Syntax
 public Boolean AutoRotate { get; set; }

Property Value

true to auto-rotate the tabItem header; otherwise false. The default value is false.

Remarks

Note that the TabItem's Header is only rotated via XAML in the default style once the following conditions are met:

Example

The following example illustrates the effect of using this property:

XAML
<Window x:Class="EO.Demos.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="TabControl Development" 
        Height="200" 
        Width="400">
    <Grid>
        <eo:TabControl AutoRotate="True" TabStripPlacement="Left">
            <eo:TabItem Header="Header 1"></eo:TabItem>
            <eo:TabItem Header="Header 2"></eo:TabItem>
        </eo:TabControl>
    </Grid>
</Window>

The following image shows the result:

If AutoRotate was not set to true, the the tab item headers "Header 1" and "Header 2" would be horizontal.

See Also