I am trying to implement drag and drop behaviour within a WPF Treeview. As part of this I need to expand the currently hovered over node if the mouse has been over the node for a set period of time once the DragOver event has been triggered.
I have been able to successful delay the expansion using a DelayedAction on the node that triggered, but I have been unable to successful check the current position of the mouse once the delayed action has triggered. Currently, even if the mouse has moved off the node and the click released, after the delay, the node will still expand.
I need to be able to check the current position of the mouse after the delay, and only expand the node if the mouse is still over the node.