public DragTargetControlEdge(Rectangle screenRect,
Rectangle hotRect,
Rectangle drawRect,
DragTargetHint hint,
KryptonDockingControl controlElement,
KryptonPageFlags allowFlags,
bool outsideEdge)
: base(screenRect, hotRect, drawRect, hint, allowFlags)
{
_controlElement = controlElement;
_outsideEdge = outsideEdge;
// Find the orientation by looking for a matching hint (we need to exclude flags from the hint enum)
switch (hint & DragTargetHint.ExcludeFlags)
{
case DragTargetHint.Transfer:
case DragTargetHint.EdgeLeft:
_edge = VisualOrientation.Left;
break;
case DragTargetHint.EdgeRight:
_edge = VisualOrientation.Right;
break;
case DragTargetHint.EdgeTop:
_edge = VisualOrientation.Top;
break;
case DragTargetHint.EdgeBottom:
_edge = VisualOrientation.Bottom;
break;
default:
Debug.Assert(false);
throw new ArgumentOutOfRangeException("Hint must be an edge value.");
}
}