This project is read-only.

Disabling Zoom

Apr 22, 2009 at 7:48 PM

I have a map control on a Silverlight usercontrol, in the control's SizeChanged event I have:

private void VentanaPage_SizeChanged(object sender, SizeChangedEventArgs e)
     map.Height = Height - 150;
     map.Width = Width;

When I change de size of the control at rutime the size of map chages (its Ok) but the zoom of map changes too.
How i can disabled the zoom?

Apr 23, 2009 at 4:18 AM
Edited Apr 23, 2009 at 4:20 AM
there is a bunch of properties that let you turn on and off certian features like zooming
map.Events.EnableMouseClicks = true;
map.Events.EnableMouseWheel = true;
map.Events.EnableMapZoom = true;
map.Events.EnableKeyboard = false;
map.Events.EnableMapZoomOnDoubleClick = false;
Apr 27, 2009 at 11:50 AM

I tried to use  map.Events.EnableMapZoom = false but the EnableMapZoom property don't exist.

Apr 27, 2009 at 11:53 AM
Edited Apr 27, 2009 at 11:55 AM
you might have to download the latest source code 
Apr 27, 2009 at 11:57 AM
if you are using a earlier version and don't want to upgrade it 

you can just download the lastest source code and find the way it is implemented
then just add that bit of code to your project