Hello,
Could you tell me how to get the position of the tap gesture from user so that I can draw a line from that?
If you use tap gesture to get the position from user, you can obtain by calling the GetPosition
method on a TappedEventArgs object. The GetPosition
method accepts an Element?
argument, and returns a position as a Point?
By the way, if you want to draw a line. Use Skisharp and effect is a good choice. You can refer to this document: Invoking Events from Effects, it is Xamarin document, but it could be used in the MAUI.
If you use Effect in MAUI, please check the Reuse effects in .NET MAUI.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.