WPF Mouse Events GetPosition
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/WPF-Mouse-Events-GetPosition/10648913)._
---
[severity:It bothers me. A fix would be nice]
hi,
the classes DragEventArgs and MouseEventArgs posses teh same method to retrive the mouse position: "GetPosition(IInputElement)".
It happend in my project, that I had to process the position in Mouse events and drag events.
To avoid dublicate code I had the idea to pass the event args to a method, but it wont compile.
How about an interface, which proviedes access to "GetPosition"?
chears
Michael
---
### Original Comments
#### Feedback Bot on 4/29/2024, 02:58 PM:
(private comment, text removed)
---
### Original Solutions
(no solutions)
Contributor guide
Assessment
This issue has not been assessed yet.