[]
        
(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.dll
Syntax
[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))]
[StyleTypedProperty(Property = "DockTabHeaderStyle", StyleTargetType = typeof(C1TabItemPresenter))]
[StyleTypedProperty(Property = "SelectedDockTabHeaderStyle", StyleTargetType = typeof(C1TabItemPresenter))]
[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))]
public class C1DockControl : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, IDisposable
Remarks

Contains C1DockGroups and C1DockTabControls with C1DockTabItems.

Constructors

Name Description
C1DockControl()

Initializes a new instance of the C1DockControl class.

Fields

Name Description
DockTabControlStyleProperty

Identifies the DockTabControlStyle dependency property.

DockTabHeaderStyleProperty

Identifies the DockTabHeaderStyle 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.

SelectedDockTabHeaderStyleProperty

Identifies the SelectedDockTabHeaderStyle 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.

WindowStyleProperty

Identifies the WindowStyle dependency property.

Properties

Name Description
ActualHeaderForeground

Returns the Brush object to use as HeaderForeground inside control template.

ActualTabControlForeground

Returns the Brush object to use as TabControlForeground inside control template.

DockTabControlStyle

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

DockTabHeaderStyle

Gets or sets the style of the tab header.

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 the whole C1DockControl.

IsDisposed

Gets whether this instance is disposed.

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

Gets or sets the style applied to C1DockPreview instances created by this C1DockControl.

SelectedDockTabHeaderStyle

Gets or sets the style of the selected tab header.

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.

WindowStyle

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

Methods

Name Description
Clean(bool)

Clean data. Internal use only.

CreateDockTabControlOverride()

Factory method for C1DockTabControl instances.

DeferRefresh()

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

Dispose()
Dispose(bool)
Finalize()

Finalizes this instance of the C1DockControl class.

Load(XElement)

Recreates the C1DockControl from the saved settings.

Load(XElement, bool)

Not recreates the C1DockTabItem from the saved settings.

OnApplyTemplate()
OnItemsChanged(NotifyCollectionChangedEventArgs)

Called when the value of the Items property changes.

OnPropertyChanged(DependencyPropertyChangedEventArgs)
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.