HC’s extension to wpf native TabControl
.
1 | [ ] |
Attributes
Property | Description | Default Value | Remarks |
---|---|---|---|
IsAnimationEnabled | Whether to enable animation effect | false | |
IsDraggable | Does the tab support dragging | false | |
ShowCloseButton | Whether the close button is displayed on the tab | false | |
ShowContextMenu | Does the tab support context menu | true | |
IsTabFillEnabled | Whether the tab automatically divides the space | false | |
TabItemWidth | Tab Width | 200 | |
TabItemHeight | Tab Height | 30 | |
IsScrollable | Whether the mouse wheel scroll is supported after the tab overflows | false | |
ShowOverflowButton | Whether to show the drop-down button after the tab overflows | true | |
ShowScrollButton | Whether to display scroll buttons | false | |
OverflowMenuDisplayMemberPath | |||
CanBeClosedByMiddleButton |
Events
Event |
---|
Closed |
Closing |
Example:
<hc:TabControl hc:TabItem.Closed=”TabControl_Closed” ShowCloseButton=”True”/>
or
<hc:TabControl ShowCloseButton=”True”>
<hc:TabItem Header=”test” Closed=”TabItem_Closed”/>
Case
1 | <hc:TabControl IsAnimationEnabled="True" ShowCloseButton="True" IsDraggable="True" IsTabFillEnabled="True" Width="800" Height="300"> |
TabItem
You can use the IconElement
class to set icons for tabs.