[]
        
(Showing Draft Content)

C1.WPF.Docking.C1DockTabControl

C1DockTabControl Class

Represents a dockable, slideable, and floatable item in a C1DockControl.

Inheritance
C1DockTabControl
Namespace: C1.WPF.Docking
Assembly: C1.WPF.Docking.4.6.2.dll
Syntax
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(C1DockTabItem))]
[TemplatePart(Name = "TabPanelPresenter", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "DockedMenuItem", Type = typeof(C1MenuItem))]
[TemplatePart(Name = "SlidingMenuItem", Type = typeof(C1MenuItem))]
[TemplatePart(Name = "FloatingMenuItem", Type = typeof(C1MenuItem))]
[TemplatePart(Name = "HiddenMenuItem", Type = typeof(C1MenuItem))]
[TemplatePart(Name = "DockedButton", Type = typeof(Button))]
[TemplatePart(Name = "SlidingButton", Type = typeof(Button))]
[TemplatePart(Name = "FloatingButton", Type = typeof(Button))]
[TemplatePart(Name = "HiddenButton", Type = typeof(Button))]
[TemplatePart(Name = "Picker", Type = typeof(C1DockPicker))]
[TemplatePart(Name = "Preview", Type = typeof(C1DockPreview))]
[TemplatePart(Name = "StackPanelButtons", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "InnerPopup", Type = typeof(Popup))]
[TemplateVisualState(Name = "DockModeDocked", GroupName = "DockModeStates")]
[TemplateVisualState(Name = "DockModeSliding", GroupName = "DockModeStates")]
[TemplateVisualState(Name = "DockModeFloating", GroupName = "DockModeStates")]
public class C1DockTabControl : C1TabControl

Constructors

Name Description
C1DockTabControl()

Initializes a new instance of a C1DockTabControl.

Fields

Name Description
CanUserDockProperty

Identifies the CanUserDock dependency property.

CanUserFloatProperty

Identifies the CanUserFloat dependency property.

CanUserHideProperty

Identifies the CanUserHide dependency property.

CanUserSlideProperty

Identifies the CanUserSlide dependency property.

DisableDockFunctionBehaviorProperty

Identifies the DisableDockFunctionBehavior dependency property.

DisableFloatFunctionBehaviorProperty

Identifies the DisableFloatFunctionBehavior dependency property.

DisableHideFunctionBehaviorProperty

Identifies the DisableHideFunctionBehavior dependency property.

DisableSlideFunctionBehaviorProperty

Identifies the DisableSlideFunctionBehavior dependency property.

DockHeightProperty

Identifies the DockHeight dependency property.

DockMinHeightProperty

Identifies the DockMinHeight dependency property.

DockMinWidthProperty

Identifies the DockMinWidth dependency property.

DockModeProperty

Identifies the DockMode dependency property.

DockProperty

Identifies the Dock dependency property.

DockWidthProperty

Identifies the DockWidth dependency property.

DragProperty

Internal property used on the header element in the control's template.

HeaderBackgroundProperty

Identifies the HeaderBackground dependency property.

HeaderForegroundProperty

Identifies the HeaderForeground dependency property.

HorizontalFillProperty

Identifies the HorizontalFill dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

ShowHeaderProperty

Identifies the ShowHeader dependency property.

ShowMenuProperty

Identifies the ShowMenu dependency property.

TabStripBackgroundProperty

Identifies the TabStripBackground dependency property.

TabStripForegroundProperty

Identifies the TabStripForeground dependency property.

VerticalFillProperty

Identifies the VerticalFill dependency property.

Properties

Name Description
CanUserDock

Gets or sets a value that determines whether the user can change the DockMode property to DockMode.Docked.

CanUserFloat

Gets or sets a value that determines whether the user can change the DockMode property to DockMode.Floating.

CanUserHide

Gets or sets a value that determines whether the user can change the DockMode property to DockMode.Hidden.

CanUserSlide

Gets or sets a value that determines whether the user can change the DockMode property to DockMode.Sliding.

DisableDockFunctionBehavior

Define the way we disable Dock button in UI

DisableFloatFunctionBehavior

Define the way we disable Float button in UI

DisableHideFunctionBehavior

Define the way we disable Hide button in UI

DisableSlideFunctionBehavior

Define the way we disable Slide button in UI

Dock

Gets or sets the edge of the parent to which this element should be attached.

DockHeight

Gets or sets the desired vertical size for this element.

DockMinHeight

Gets or sets the minimum height constraint of the element.

DockMinWidth

Gets or sets the minimum width constraint of the element.

DockMode

Gets or sets whether the C1DockTabControl floats, slides from the border of the C1DockControl, is hidden, or is docked.

DockWidth

Gets or sets the desired horizontal size of the element.

HeaderBackground

Gets or sets the background brush of the header.

HeaderForeground

Gets or sets the foreground brush of the header.

HorizontalFill

Whether the control resizes to fill the remaining horizontal space.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

SelectedBackground

Gets or sets the Brush used to highlight the control when it is selected.

ShowHeader

Gets or sets a value that determines whether the header of the currently selected C1DockTabItem is visible.

ShowMenu

Gets or sets a value that determines whether the menu to set the DockMode is visible.

TabStripBackground

Gets or sets the Brush that will be assigned to the Background of the tab strip.

TabStripForeground

Gets or sets the Brush that will be assigned to the Foreground of the tab strip.

VerticalFill

Whether the control resizes to fill the remaining vertical space.

Methods

Name Description
ChangeVisualStateDockMode(bool)

Updates the current visual state of the DockMode visual state group to match the object's properties.

GetContainerForItemOverride()
GetDrag(UIElement)

Gets the value of the attached Drag property.

IsItemItsOwnContainerOverride(object)
OnApplyTemplate()

Builds the visual tree for the C1DockTabControl control when a new template is applied.

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Called when the value of the Items property changes.

SetDrag(UIElement, C1DockTabControl)

Sets the value of the attached Drag property.

SlideOpen()

Shows the C1DockTabControl when the DockMode is set to DockMode.Sliding.