In This Article

AutoHideTabStrip Class

Represents an auto-hide tab strip.

public class AutoHideTabStrip : ItemsControl, IOrientedElement
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl object
Implements:
IOrientedElement

Constructors

AutoHideTabStrip()

Initializes an instance of the class.

public AutoHideTabStrip()

Properties

IsHorizontal

Indicates whether the tabstrip is positioned horizontally.

public bool IsHorizontal { get; }

Property Value

bool

Placement

The dock side upon which the tabstrip is placed.

public Side Placement { get; set; }

Property Value

Side

TabItemTemplate

The DataTemplate to use for rendering the tab items.

public DataTemplate? TabItemTemplate { get; set; }

Property Value

DataTemplate

TabItemTemplateSelector

The DataTemplateSelector to use for rendering the tab items.

public DataTemplateSelector? TabItemTemplateSelector { get; set; }

Property Value

DataTemplateSelector

Methods

ClearContainerForItemOverride(DependencyObject, object)

When overridden in a derived class, undoes the effects of the PrepareContainerForItemOverride(DependencyObject, object) method.

protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The container element.

item object

The item.

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject:

The element that is used to display the given item.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

protected override bool IsItemItsOwnContainerOverride(object item)
Parameter Type Description
item object

The item to check.

Returns

bool:

true if the item is (or is eligible to be) its own container; otherwise, false.

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

Element used to display the specified item.

item object

Specified item.

Fields

IsHorizontalProperty

Defines the IsHorizontal property.

public static readonly DependencyProperty IsHorizontalProperty

PlacementProperty

Defines the Placement property.

public static readonly DependencyProperty PlacementProperty

TabItemTemplateProperty

Defines the TabItemTemplate property.

public static readonly DependencyProperty TabItemTemplateProperty

TabItemTemplateSelectorProperty

Defines the TabItemTemplateSelector property.

public static readonly DependencyProperty TabItemTemplateSelectorProperty

Extension Methods