/// <summary> /// Selects the provided items with the mouse preparing for a drag and drop /// </summary> /// <param name="source"></param> private static void SelectItemsForDragAndDrop(ITreeNode[] source) { AutomationWrapper.Select(((TreeNode)source.First()).Element); for (int i = 1; i < source.Length; i++) { AutomationWrapper.AddToSelection(((TreeNode)source[i]).Element); } Mouse.MoveTo(((TreeNode)source.Last()).Element.GetClickablePoint()); Mouse.Down(MouseButton.Left); }