c# - Check mouse position on WPF Control Drag and Drop after a delay -
i trying implement drag , drop behaviour within wpf treeview. part of need expand hovered on node if mouse has been on node set period of time once dragover event has been triggered.
i have been able successful delay expansion using delayedaction on node triggered, have been unable successful check current position of mouse once delayed action has triggered. currently, if mouse has moved off node , click released, after delay, node still expand.
i need able check current position of mouse after delay, , expand node if mouse still on node.
i able solve answer different question here. thread used available here: how current mouse screen coordinates in wpf?
i used win32 approach correct mouse position after delay , use current treeviewitem under mouse using hit test.
if current treeviewitem same treeviewitem triggered dragover event expand node, or else nothing.
Comments
Post a Comment