To temporarily disable panning you can set the disablePanning
option of the map accordingly. This would be much easier that trying to block events within the map, especially since there are several ways to pan a map (mouse, touch, keyboard).
For example:
map.setOptions({
disablePanning: true
});
map.setOptions({
disablePanning: false
});
As a quick test, here is some code that would disable panning for 5 seconds after the map loads, then reenable it:
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {});
map.setOptions({
disablePanning: true
});
setTimeout(() => {
map.setOptions({
disablePanning: false
});
}, 5000);