This project has moved and is read-only. For the latest updates, please go here.

Touch stops working when control is wrapped

Feb 15, 2015 at 2:11 PM

I use your control to show interior maps in a building with several floors. I wanted to show buttons to switch between floors above the map control. When I wrap MapBase in Grid the touch gestures stops working so the user is no longer able to pan or zoom the map. Like this:
<map:MapBase x:Name="map" ZoomLevel="18" MinZoomLevel="18" MaxZoomLevel="22"
                     TileLayer="{Binding [BuildingFloor-1Map], Source={StaticResource TileLayers}}"
                     ManipulationMode="Scale,TranslateX,TranslateY, TranslateInertia, Rotate, RotateInertia"
Any clues?

Btw. Great control and nice piece of code :)

Thanks in advance
Feb 15, 2015 at 3:02 PM
Well, it's your code. MapBase itself does not implement any manipulation behaviour. Maybe move the manipulation events to the Grid?
Feb 15, 2015 at 4:42 PM
Edited Feb 16, 2015 at 8:21 AM
Yeah, that's strange but I found solution few minutes ago. I've put Grid inside the MapBase, like Canvas from your example apps and it works like a charm :)

One more thing, this issue appears on Windows Phone 8.1.