Class TabControl
Implements control with multiple items and content selector
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class TabControl : Selector
Constructors
TabControl()
Initializes a new instance of the TabControl class.
Declaration
public TabControl()
Fields
SelectedContentProperty
The selected content property
Declaration
public static readonly DependencyProperty SelectedContentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TabStripPlacementProperty
The tab strip placement property
Declaration
public static readonly DependencyProperty TabStripPlacementProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
SelectedContent
Gets the content of the selected.
Declaration
public object SelectedContent { get; }
Property Value
Type | Description |
---|---|
System.Object | The content of the selected. |
TabStripPlacement
Gets or sets the tab strip placement.
Declaration
public Dock TabStripPlacement { get; set; }
Property Value
Type | Description |
---|---|
Dock | The tab strip placement. |
Methods
GetContainerForItemOverride(Object)
Gets the container for item override.
Declaration
protected override UIElement GetContainerForItemOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item. |
Returns
Type | Description |
---|---|
UIElement |
Overrides
IsItemItsOwnContainerOverride(Object)
Determines whether if [is item its own container override].
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
OnApplyTemplate()
Called when [apply template].
Declaration
public override void OnApplyTemplate()
Overrides
OnContainersChanged()
Called when [containers changed].
Declaration
protected override void OnContainersChanged()
Overrides
OnGamepadTrigger(Object, GamepadTriggerEventArgs)
Called when [game pad trigger].
Declaration
protected override void OnGamepadTrigger(object sender, GamepadTriggerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
GamepadTriggerEventArgs | e | The GamepadTriggerEventArgs instance containing the event data. |
Overrides
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
KeyEventArgs | e | The KeyEventArgs instance containing the event data. |
Overrides
OnSelectionChanged(SelectionChangedEventArgs)
Raises the SelectionChanged event.
Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
SelectionChangedEventArgs | e | The SelectionChangedEventArgs instance containing the event data. |
Overrides
SetContainer(UIElement, UIElement)
Sets the container.
Declaration
protected override void SetContainer(UIElement itemContainer, UIElement contentVisual)
Parameters
Type | Name | Description |
---|---|---|
UIElement | itemContainer | The item container. |
UIElement | contentVisual | The content visual. |