AutoHideTabStrip Class
Represents an auto-hide tab strip.
public class AutoHideTabStrip : ItemsControl
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl object
Constructors
AutoHideTabStrip()
Initializes an instance of the AutoHideTabStrip
class.
public AutoHideTabStrip()
Properties
IsHorizontal
Gets whether the tabstrip is positioned horizontally.
public bool IsHorizontal { get; }
Property Value
- bool:
true
if the tabstrip is positioned horizontally; otherwise,false
.
Placement
Gets or sets the side upon which the tabstrip is placed.
public Side Placement { get; set; }
Property Value
- Side:
The side upon which the tabstrip is placed.
TabItemTemplate
Gets or sets the DataTemplate to use for rendering the tab items.
public DataTemplate TabItemTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate to use for rendering the tab items.
TabItemTemplateSelector
Gets or sets the DataTemplateSelector to use for rendering the tab items.
public DataTemplateSelector TabItemTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The DataTemplateSelector to use for rendering the tab items.
Methods
ClearContainerForItemOverride(DependencyObject, object)
Removes the effects of a PrepareContainerForItemOverride(DependencyObject, object) call.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameter | Type | Description |
---|---|---|
element | DependencyObject | The System.Windows.DependencyObject that is the wrapper element. |
item | object | The item that is being wrapped. |
GetContainerForItemOverride()
Creates or identifies the element used to display the specified 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 item container.
protected override bool IsItemItsOwnContainerOverride(object item)
Parameter | Type | Description |
---|---|---|
item | object | Specified item. |
Returns
- bool:
true
if the item is its own item 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 | The System.Windows.DependencyObject that is the wrapper element. |
item | object | The item that is being wrapped. |
Fields
IsHorizontalProperty
Identifies the IsHorizontal dependency property. This field is read-only.
public static readonly DependencyProperty IsHorizontalProperty
PlacementProperty
Identifies the Placement dependency property. This field is read-only.
public static readonly DependencyProperty PlacementProperty
TabItemTemplateProperty
Identifies the TabItemTemplate dependency property. This field is read-only.
public static readonly DependencyProperty TabItemTemplateProperty
TabItemTemplateSelectorProperty
Identifies the TabItemTemplateSelector dependency property. This field is read-only.
public static readonly DependencyProperty TabItemTemplateSelectorProperty