Map tap event / mouse down event in windows phone 8?

后端 未结 1 1037
猫巷女王i
猫巷女王i 2021-01-21 05:26

I am using the windows phone emulator. I wrote a very simple program: draw a marker on the map when the user tap the map once.

Then I used map_tap event, and get the tap

1条回答
  •  天涯浪人
    2021-01-21 05:57

    The GestureEventArgs.GetPosition() method takes a parameter specifying what UIElement to get the coordinate relative to (see the MSDN documentation). So, try doing

    Point p = e.GetPosition(map);
    

    instead.

    0 讨论(0)
提交回复
热议问题