Disable zoom on double tap in Bing Maps WPF control


  • Hi everybody,

    we are currently developing an application (for Micrsoft Pixelsense) with the Bing Maps WPF control. Because of some special interaction features, we want to disable zoom on double tap for the map (and allow only zoom with the pinch gesture). However, we did not find a respective event handler (it seems to be present in the Silverlight version, but not in the WPF version). We already filter mouse double click, previewTapGesture and previewHoldGesture - however, we still have the undesired effect. This even happens when we set

    Map.SupportedManipulations = System.Windows.Input.Manipulations.Manipulations2D.None;

    Does anyone have a suggestion how we can complete disable zoom on double tap in the bing maps WPF control?



    Monday, June 03, 2013 3:46 PM


  • Not sure where this post was made but it just showed up in the Bing Maps forums. In any case this can be easily done by attaching to the viewchanged event handler and setting the zoom level to the zoom level you want to lock to. For example:

    _map.ViewChangeOnFrame += _map_ViewChangeOnFrame;
    private void _map_ViewChangeOnFrame(object sender, MapEventArgs e)
    	_map.ZoomLevel = _zoom;

    Wednesday, October 30, 2013 9:33 AM