Hi,
I am doing some hit testing on some MapPolygons that are on my map. I didn't want to roll my own click event on the MapPolygon by using MouseDown MouseUp, MouseMoves, Timers, etc to determine the users intentions on the map. I then thought I would use the MapMouseClick event from the map itself then use VisualTreeHelper.FindElementsInHostCoordinates to determine what was clicked. Of course it is a polygon wrapped in a content presenter that makes up the shape and not the MapShape that is returned.
My goal was to then query my Tag property on my MapShape. So I have a few requests:
1) Attach the shapes Tag property to the MapShape.Tag property like the Stroke, Fill etc. for direct Tag access.
2) Attach the shapes Parent property to the MapShape itself so one could at least get back to the original MapShape.
3) Add map compatible Click and DoubleClick routed events to the MapShape so one doesn't have to create their own compatible logic.
Cheers,
Clint
I am doing some hit testing on some MapPolygons that are on my map. I didn't want to roll my own click event on the MapPolygon by using MouseDown MouseUp, MouseMoves, Timers, etc to determine the users intentions on the map. I then thought I would use the MapMouseClick event from the map itself then use VisualTreeHelper.FindElementsInHostCoordinates to determine what was clicked. Of course it is a polygon wrapped in a content presenter that makes up the shape and not the MapShape that is returned.
My goal was to then query my Tag property on my MapShape. So I have a few requests:
1) Attach the shapes Tag property to the MapShape.Tag property like the Stroke, Fill etc. for direct Tag access.
2) Attach the shapes Parent property to the MapShape itself so one could at least get back to the original MapShape.
3) Add map compatible Click and DoubleClick routed events to the MapShape so one doesn't have to create their own compatible logic.
Cheers,
Clint