I'm testing a WPF treeview, my application works fine. White however?
What seems to be happening is when you do a
A gets dragged to the x coordinate of B, but may never actually get dragged over B.
For example a tree that looks like
The drop operation takes place to the right of B (it seems white assumes B goes the entire width of the window, finds the midpoint and drops at that midpoint). If one were to change the name of B to BBBBBBBBBBBBBBBBBBBB it could work, (depending on
the size of the parent window).
Rect rect = b.Bounds; // b.Bounds is returning bad information, in WPF the visual is not this wide
Assert.AreEqual(((rect1.Right - rect1.Left)/2) + rect1.Left, Mouse.Instance.Location.X, .6);
Also, the drag operation does not complete, the cursor justs sits there until I move the mouse. It seems it takes this action before the DragAndDrop method returns.
Searching the forum, yeilds other postings with similar issues, but no information.
What is the proper way to use White in this scenario?