Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Get mouse position within a control during Drag/Drop

$
0
0

I have been trying to get this to work for a while now.  While in the Drop method I want to get the mouse position relative to the control that was dropped on.  I only get negative numbers in the point object using the following:

        CursorPos = Mouse.GetPosition(e.Source)

CursorPos is a property of type Point.

Also when in the DragOver method the value does not change while dragging.

Kinda frustrating


Lloyd Sheen



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>