
TreeView - Unable to scroll up when DragOver occurs
I have a treeview that has code in the DragOver and DragDrop events.
The DragDrop event accepts a new node into the treeview when the source has
been a node from another treeview.
The DragOver event code changes the SelectedItem to the node that is located
via the HitTest(x,y) method, it also expands the node so the user can
navigate (and select) sub nodes.
The problem is that the DragOver event enables the user to expand the entire
tree by moving the dragged item over every node. As the mouse moves down the
treeview will scroll down as appropriate to the very last node. When the
user goes to scroll back up the treeview - it won't move. You are stuck at
the topmost visible node.
How can I get the entire treeview to scroll back up to the very top of the
tree during the DragOver event?
Thanks
Bill Wood