fk2
fk2

Reputation: 749

Getting the clicked mouse coordinates from a Image Box in C#/WPF

In order to work with an image I need to make the user select certain(4) coordinates within a Image Box and afterwards save that coordinate data and close the window. The project is using C# and WPF. Sadly google is giving me a lot of unfocused solutions on this topic. Any suggestions/ links?

thanks

Upvotes: 0

Views: 4244

Answers (1)

Tomislav Markovski
Tomislav Markovski

Reputation: 12346

Point pos = Mouse.GetPosition(myElement); will give you the mouse position relative to the element.

Upvotes: 1

Related Questions