Skip to content

IOverlayWindowHost

Dirkster99 edited this page Dec 12, 2019 · 14 revisions

This interface is implemented by a class that can display an OverlayWindow, which in turn is used to arrange the docking layout of a document or tool window in AvalonDock.

Consider the screenshot below. The IOverlayWindowHost is in this case the DockingManager and the Overlay Buttons are shown on the DocumentsPane withint the DockingManager.

Properties

Manager

DockingManager Manager { get; }

Gets the DockingManager control that should be invoked to do the actual docking if docking into this IOverlayWindowHost should be performed.

Methods

HitTest

bool IOverlayWindowHost.HitTest(Point dragPoint)

Determines whether the given screen coordinates are part of the IOverlayWindowHost window or not.

ShowOverlayWindow

IOverlayWindow IOverlayWindowHost.ShowOverlayWindow(LayoutFloatingWindowControl dragWin)

Is invoked by the DragService of a [LayoutAnchorableFloatingWindowControl (LayoutAnchorableFloatingWindowControl) to actually show the OverlayWindow for a given LayoutFloatingWindowControl on an IOverlayWindowHost (where the IOverlayWindowHost is the drop target and the LayoutFloatingWindowControl the dragged item).

HideOverlayWindow

void IOverlayWindowHost.HideOverlayWindow()

Is invoked by the DragService of a [LayoutAnchorableFloatingWindowControl (LayoutAnchorableFloatingWindowControl) to hide the OverlayWindow for this IOverlayWindowHost.

GetDropAreas

IEnumerable<IDropArea> IOverlayWindowHost.GetDropAreas(LayoutFloatingWindowControl dragWin)

Is invoked by the DragService of a [LayoutAnchorableFloatingWindowControl (LayoutAnchorableFloatingWindowControl) to find and show all overlay buttons for a [LayoutAnchorableFloatingWindowControl (LayoutAnchorableFloatingWindowControl) when it is dragged over an OverlayWindow.

Demo Projects

Controls

Layout Models

Interfaces

Class Designs

Bugs

Manual Tests

Clone this wiki locally