Image Click Coordinates

Michael McConnell 6 Reputation points
2021-09-10T20:01:36.597+00:00

Hello all,

I have a rather complicated SVG image drawn out, and I want to get the coordinates of the "Tap" or "Click" event.

Can anyone point me in the right direction as to how I can get the coordinates of the click?

Thanks so much
Mike

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kyle Wang 5,531 Reputation points
    2021-09-13T09:13:19.443+00:00

    Hi MichaelMcConnell-3245,

    Welcome to our Microsoft Q&A platform!

    To get the coordinates of the click, here is a documentation you can refer to:
    Invoking Events from Effects.

    And you can download the sample on GitHub: xamarin/xamarin-forms-samples.

    You can get the coordinates of point in the method "FireEvent" in TouchEffect.cs.

    Regards,
    Kyle


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments