Disabling Zoom

Apr 22, 2009 at 6:48 PM
Hi

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?

Regards.
Alejandro
 
Developer
Apr 23, 2009 at 3:18 AM
Edited Apr 23, 2009 at 3: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 10:50 AM
Thanks, 

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

Regards.
Alejandro
Developer
Apr 27, 2009 at 10:53 AM
Edited Apr 27, 2009 at 10:55 AM
you might have to download the latest source code 
Developer
Apr 27, 2009 at 10: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