DropTarget<T> - wesley7child/OuterPlugin GitHub Wiki
The abstract
DropTarget<T> base class is implemented by:
- AnchorablePaneDropTarget
- DockingManagerDropTarget
- DocumentPaneDropAsAnchorableTarget
- DocumentPaneDropTarget
- DockingPaneGroupDropTarget
DropTargetType Type { get; }
Geometry GetPreviewPath( OverlayWindow overlayWindow, LayoutFloatingWindow floatingWindow );
bool HitTest( Point dragPoint );`
void Drop( LayoutFloatingWindow floatingWindow );`
Is invoked via DragService when a dragged floatingWindow
(LayoutDocumentFloatingWindow or LayoutAnchorableFloatingWindow) is dropped into a docking position on another element.
The method invokes either overrideable
Drop method of this abstract class (eg: AnchorablePaneDropTarget.Drop()):
- Drop(LayoutAnchorableFloatingWindow fwAsAnchorable)
- Drop(LayoutDocumentFloatingWindow fwAsDocument)
and updates the IsSelected and IsActive properties of floatingWindow.Root.ActiveContent
.
void DragEnter();`
void DragLeave();`