Index: Core/Common/src/Core.Common.Controls.TreeView/DragDropHandler.cs =================================================================== diff -u -r569a286badd9b3494f5465cc2767a8cf6a77f618 -r8d255056f1af6be56ee92712ccad79d8bf2d5370 --- Core/Common/src/Core.Common.Controls.TreeView/DragDropHandler.cs (.../DragDropHandler.cs) (revision 569a286badd9b3494f5465cc2767a8cf6a77f618) +++ Core/Common/src/Core.Common.Controls.TreeView/DragDropHandler.cs (.../DragDropHandler.cs) (revision 8d255056f1af6be56ee92712ccad79d8bf2d5370) @@ -360,34 +360,27 @@ int xPos, yPos; Rectangle bounds = node.Bounds; - switch (anchor) + if (anchor == AnchorStyles.Left) { - case AnchorStyles.Left: - xPos = GetImageLeft(node) - placeHolderWidth; - break; - case AnchorStyles.Right: - xPos = bounds.Right; - break; - default: - return new Point[0]; + xPos = GetImageLeft(node) - placeHolderWidth; } + else + { + xPos = bounds.Right; + } - switch (location) + if (location == PlaceholderLocation.Top) { - case PlaceholderLocation.Top: - yPos = bounds.Top; - break; - case PlaceholderLocation.Bottom: - yPos = bounds.Bottom; - break; - case PlaceholderLocation.Middle: - yPos = bounds.Top + bounds.Height / 2; - break; - default: - throw new InvalidEnumArgumentException(nameof(location), - (int) location, - typeof(PlaceholderLocation)); + yPos = bounds.Top; } + else if (location == PlaceholderLocation.Bottom) + { + yPos = bounds.Bottom; + } + else + { + yPos = bounds.Top + bounds.Height / 2; + } return CreateTrianglePoints(new Rectangle(xPos, yPos - placeHolderWidth, placeHolderWidth, placeHolderHeight), anchor); }