DynamicTabControl ClassDW.WPFToolkit Documentation
Enhances the TabControl with buttons for add new tab item and close buttons of existing tab items.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsItemsControl
                System.Windows.Controls.PrimitivesSelector
                  System.Windows.ControlsTabControl
                    DW.WPFToolkit.ControlsDynamicTabControl

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class DynamicTabControl : TabControl

The DynamicTabControl type exposes the following members.

Constructors

  NameDescription
Public methodDynamicTabControl
Initializes a new instance of the DynamicTabControl class
Top
Methods

  NameDescription
Protected methodGetContainerForItemOverride
Generates a new child item container to hold in the DynamicTabControl.
(Overrides TabControlGetContainerForItemOverride.)
Protected methodIsItemItsOwnContainerOverride
Checks if the item is already the correct item container. If not the GetContainerForItemOverride will be used to generate the right container.
(Overrides TabControlIsItemItsOwnContainerOverride(Object).)
Top
Fields

  NameDescription
Public fieldStatic memberAddButtonHeightProperty
Identifies the AddButtonHeight dependency property.
Public fieldStatic memberAddButtonMarginProperty
Identifies the AddButtonMargin dependency property.
Public fieldStatic memberAddButtonPositionProperty
Identifies the AddButtonPosition dependency property.
Public fieldStatic memberAddButtonWidthProperty
Identifies the AddButtonWidth dependency property.
Public fieldStatic memberShowAddButtonProperty
Identifies the ShowAddButton dependency property.
Public fieldStatic memberShowCloseButtonsProperty
Identifies the ShowCloseButtons dependency property.
Public fieldStatic memberTabItemAddingCommandParameterProperty
Identifies the TabItemAddingCommandParameter dependency property.
Public fieldStatic memberTabItemAddingCommandProperty
Identifies the TabItemAddingCommand dependency property.
Public fieldStatic memberTabItemClosingCommandProperty
Identifies the TabItemClosingCommand dependency property.
Top
Properties

  NameDescription
Public propertyAddButtonHeight
Gets or sets the height of the add new tab item button.
Public propertyAddButtonMargin
Gets or sets the margin of the add new tab item button.
Public propertyAddButtonPosition
Gets or sets the value which indicates where the add new tab item button has to be placed in the header.
Public propertyAddButtonWidth
Gets or sets the width of the add new tab item button.
Public propertyShowAddButton
Gets or sets the value which indicates if the add new tab item button is shown.
Public propertyShowCloseButtons
Gets or sets a value which indicates if the close buttons are shown on the tab items header.
Public propertyTabItemAddingCommand
Gets or sets the command which gets called when the add new tab item button is pressed.
Public propertyTabItemAddingCommandParameter
Gets or sets the parameter which is passed with the TabItemAddingCommand command.
Public propertyTabItemClosingCommand
Gets or sets the command which gets called when the close on the tab item header is clicked. The tab DataContext is forwarded as the command parameter.
Top
Examples

XAML
<Toolkit:DynamicTabControl ShowAddButton="True"
                           TabItemAddingCommand="{Binding AddItemCommand}"
                           TabItemClosingCommand="{Binding RemoveItemCommand}" />
See Also

Reference