Interface ILayoutUpdateStrategy
Defines the interface of a layout initializer class which can be invoked by the DockingManager before/after inserting a new Anchorable/Document to call custom client application code and determine whether the DockingManager should go ahead and insert the new Anchorable/Document or not.
The layout initializer object should be bound to the <xref href="H.Controls.Dock.DockingManager.LayoutUpdateStrategy" data-throw-if-not-resolved="false"></xref> dependency property.
public interface ILayoutUpdateStrategy
- Extension Methods
Methods
AfterInsertAnchorable(LayoutRoot, LayoutAnchorable)
Is invoked after inserting a LayoutAnchorable to inform the client application and give it a chance to set the initial dimensions (DockWidth or DockHeight, depending on location) of the inserted Anchorable.
void AfterInsertAnchorable(LayoutRoot layout, LayoutAnchorable anchorableShown)
Parameters
layoutLayoutRootanchorableShownLayoutAnchorable
AfterInsertDocument(LayoutRoot, LayoutDocument)
Is invoked after inserting a LayoutAnchorable to inform the client application and give it a chance to set the initial dimensions (DockWidth or DockHeight, depending on location) of the inserted LayoutDocument.
void AfterInsertDocument(LayoutRoot layout, LayoutDocument anchorableShown)
Parameters
layoutLayoutRootanchorableShownLayoutDocument
BeforeInsertAnchorable(LayoutRoot, LayoutAnchorable, ILayoutContainer)
Is invoked before inserting a LayoutAnchorable to determine whether the DockingManager should insert this item at the given position or not.
bool BeforeInsertAnchorable(LayoutRoot layout, LayoutAnchorable anchorableToShow, ILayoutContainer destinationContainer)
Parameters
layoutLayoutRootanchorableToShowLayoutAnchorabledestinationContainerILayoutContainer
Returns
- bool
False if the DockingManager should perform the indicated insertion and true if not (the client code should perform the insertion).
BeforeInsertDocument(LayoutRoot, LayoutDocument, ILayoutContainer)
Is invoked before inserting a LayoutDocument to determine whether the DockingManager should insert this item at the given position or not.
bool BeforeInsertDocument(LayoutRoot layout, LayoutDocument anchorableToShow, ILayoutContainer destinationContainer)
Parameters
layoutLayoutRootanchorableToShowLayoutDocumentdestinationContainerILayoutContainer
Returns
- bool
False if the DockingManager should perform the indicated insertion and true if not (the client code should perform the insertion).