[]
        
(Showing Draft Content)

C1.WPF.Docking.C1DockControl

C1DockControl Class

C1DockControl is a control that allows you to dock, float, or tab windows.

Namespace: C1.WPF.Docking
Assembly: C1.WPF.Docking.4.6.2.dll
Syntax
[TemplatePart(Name = "DockedHost", Type = typeof(C1DockControlPanel))]
[TemplatePart(Name = "LeftSlidingHeader", Type = typeof(StackPanel))]
[TemplatePart(Name = "TopSlidingHeader", Type = typeof(StackPanel))]
[TemplatePart(Name = "RightSlidingHeader", Type = typeof(StackPanel))]
[TemplatePart(Name = "BottomSlidingHeader", Type = typeof(StackPanel))]
[TemplatePart(Name = "SlidingHost", Type = typeof(C1DockSlidingPanel))]
[TemplatePart(Name = "FloatingHost", Type = typeof(Canvas))]
[TemplatePart(Name = "Picker", Type = typeof(C1DockPicker))]
[TemplatePart(Name = "Preview", Type = typeof(C1DockPreview))]
[TemplatePart(Name = "OuterPopup", Type = typeof(Popup))]
[StyleTypedProperty(Property = "PreviewStyle", StyleTargetType = typeof(C1DockPreview))]
[StyleTypedProperty(Property = "DockTabControlStyle", StyleTargetType = typeof(C1DockTabControl))]
[StyleTypedProperty(Property = "SplitterStyle", StyleTargetType = typeof(C1DockSplitter))]
[StyleTypedProperty(Property = "OuterPickerStyle", StyleTargetType = typeof(C1DockPicker))]
[StyleTypedProperty(Property = "InnerPickerStyle", StyleTargetType = typeof(C1DockPicker))]
[StyleTypedProperty(Property = "WindowStyle", StyleTargetType = typeof(C1DockWindow))]
public class C1DockControl : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage
Remarks

Contains C1DockGroups and C1DockTabControls with C1DockTabItems.

Constructors

Name Description
C1DockControl()

Initializes a new instance of a C1DockControl.

Fields

Name Description
DockTabControlStyleProperty

Identifies the DockTabControlStyle dependency property.

HeaderBackgroundProperty

Identifies the HeaderBackground dependency property.

HeaderForegroundProperty

Identifies the HeaderForeground dependency property.

InnerPickerStyleProperty

Identifies the InnerPickerStyle dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

OuterPickerStyleProperty

Identifies the OuterPickerStyle dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

PreviewStyleProperty

Identifies the PreviewStyle dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

ShowPreviewProperty

When user drag splitter, if ShowPreview equals true the C1TabControl / C1DockGroup only update after dragging completely

SlidingDurationProperty

Identifies the SlidingDuration dependency property.

SplitterStyleProperty

Identifies the SplitterStyle dependency property.

TabControlBackgroundProperty

Identifies the TabControlBackground dependency property.

TabControlForegroundProperty

Identifies the TabControlForeground dependency property.

TabStripBackgroundProperty

Identifies the TabStripBackground dependency property.

TabStripForegroundProperty

Identifies the TabStripForeground dependency property.

WindowStyleProperty

Identifies the WindowStyle dependency property.

Properties

Name Description
DockTabControlStyle

Gets or sets the Style that is applied to the inner C1DockTabControl instances.

HeaderBackground

Gets or sets the background brush of the header.

HeaderForeground

Gets or sets the foreground brush of the header.

InnerPickerStyle

Gets or sets the Style applied to C1DockPicker instances that are relative to individual C1DockTabControls.

MouseOverBrush

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

NestedItems

Gets all C1DockTabControl instances that are children of the C1DockControl or a C1DockGroup.

OuterPickerStyle

Gets or sets the Style applied to C1DockPicker instances that are relative to the whole C1DockControl.

PressedBrush

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

PreviewStyle

Style applied to C1DockPreview instances created by this C1DockControl.

SelectedBackground

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

ShowPreview

Specifies show preview of C1DockSplitter

SlidingDuration

Gets or sets the time it takes a sliding C1DockTabControl to fully open or close.

SplitterStyle

Gets or sets the Style applied to C1DockSplitter instances created by this C1DockControl.

TabControlBackground

Gets or sets the Brush used as background of the contained C1DockTabControls.

TabControlForeground

Gets or sets the Brush used as foreground of the contained C1DockTabControls.

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.

WindowStyle

Gets or sets the Style applied to C1DockWindow instances created by this C1DockControl.

Methods

Name Description
CreateDockTabControlOverride()

Factory method for C1DockTabControl instances.

DeferRefresh()

Enters a defer cycle that you can delay DockControl automatic refresh.

Load(XElement)

Recreates the C1DockControl from the saved settings.

Load(XElement, bool)

Not recreates the C1DockTabItem from the saved settings.

OnApplyTemplate()

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

OnItemsChanged(NotifyCollectionChangedEventArgs)

Called when the value of the Items property changes.

Save()

Serialize a C1DockControl

Save(bool)

Serialize a C1DockControl and preserve each C1DockTabItem's content.

SlideClose(bool)

Hide the currently opened sliding C1DockTabControl.

Events

Name Description
ItemDockModeChanged

Fires when the DockMode of a descendant C1DockTabControl changes.

PickerLoading

Allows you to customize which target directions are possible when docking a C1DockTabControl.

SlidingClosed

Fires when a C1DockTabItem finished closing or was substituted for another C1DockTabItem.

SlidingClosing

Fires when a C1DockTabItem begins to close.

SlidingOpened

Fires when a C1DockTabItem has opened fully.

SlidingOpening

Fires when a C1DockTabItem begins to slide open.

ViewChanged

Fires when the children collection of the C1DockControl or a descendant C1DockGroup changes.