Skip to content

WPF Mouse Events GetPosition #9243

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions