Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Howto block keyboard cursor keys?

I'm using the xamMap control in a similar way as in the sample Seat Chooser (I'm choosing chemical elements out of a periodic table).

The problem is that the map is moved if the user presses the cursor keys on the keyboard. This doesn't make any sense here, because now it's possible to move the complete table out of sight and the user is lucky if he can bring it back. Furthermore I don't think it makes sense to move the map out of sight in any sample at all.

So is there an easy way to prevent the user from moving the map?

A second problem is the zooming of the map via mouse wheel. Is it possible to prevent this too?

You can see what I mean in Seat Chooser sample. Just click into the map and then press a cursor key on the Keyboard multiple times.

TIA Michael