TabItem
A tab of the TabControl, with a close button.
public class TabItem : System.Windows.Controls.TabItem
Inherits from / implements: System.Windows.Controls.TabItem
Remarks
The close button ( PART_TabItemCloseButton ), a middle click on the header and Ctrl+F4 while the tab is selected all raise CloseTabItemClick; removing the tab is the application's decision, made in its handler.
Members at a glance
IsAnimationEnabledOnMouseEnter | Gets or sets a value indicating whether this instance is animation enabled on mouse enter. |
IsCloseButtonVisible | Gets or sets a value indicating whether this tab shows its close button. When it does not, a middle click on the tab and Ctrl+F4 do not ask for it to be closed either. |
IsDimmedStateEnabledForUnSelectedItems | Gets or sets a value indicating whether this instance is dimmed state enabled for un selected items. |
OnApplyTemplate | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate. |
OnMouseUp | Asks for the tab to be closed on a middle click, as a browser's tabs do, when the tab has a close button. |
CloseTabItemClick | Occurs when the user asks to close this tab: its close button, a middle click on its header, or Ctrl+F4 while it is selected. The tab is not removed unless a handler removes it. |
CloseTabItemClickEvent | The close tab item click event |
IsAnimationEnabledOnMouseEnterProperty | The is animation enabled on mouse enter property |
IsCloseButtonVisibleProperty | Identifies the IsCloseButtonVisible dependency property. |
IsDimmedStateEnabledForUnSelectedItemsProperty | The is dimmed state enabled for un selected items property |
Properties
IsAnimationEnabledOnMouseEnter
Gets or sets a value indicating whether this instance is animation enabled on mouse enter.
Value. true if this instance is animation enabled on mouse enter; otherwise, false .
IsCloseButtonVisible
Gets or sets a value indicating whether this tab shows its close button. When it does not, a middle click on the tab and Ctrl+F4 do not ask for it to be closed either.
Value. true (the default) to show the close button; false for a tab the user cannot close.
IsDimmedStateEnabledForUnSelectedItems
Gets or sets a value indicating whether this instance is dimmed state enabled for un selected items.
Value. true if this instance is dimmed state enabled for un selected items; otherwise, false .
Methods
OnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
OnMouseUp
Asks for the tab to be closed on a middle click, as a browser's tabs do, when the tab has a close button.
- e
- The button that was released.
Events
CloseTabItemClick
Occurs when the user asks to close this tab: its close button, a middle click on its header, or Ctrl+F4 while it is selected. The tab is not removed unless a handler removes it.
Fields
CloseTabItemClickEvent
The close tab item click event
IsAnimationEnabledOnMouseEnterProperty
The is animation enabled on mouse enter property
IsCloseButtonVisibleProperty
Identifies the IsCloseButtonVisible dependency property.
IsDimmedStateEnabledForUnSelectedItemsProperty
The is dimmed state enabled for un selected items property