A
A
Andrey2017-03-07 01:05:29
WPF
Andrey, 2017-03-07 01:05:29

How to make a method that would wait for the LMB to be pressed on the Canvas, and then return the coordinates of the point where the click occurred?

That is, after some events (for example, pressing a button) I need to request points in the program, the coordinates of which are used in further calculations.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
d-stream, 2017-03-07
@d-stream

https://msdn.microsoft.com/en-us/library/system.wi...

A
Andrey, 2017-03-08
@ander822

Understood this problem. The method must be run in a separate thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question