Select to view content in your preferred language

How to zoom programmatically?

784
2
08-24-2010 09:27 AM
PatrickBurke
Emerging Contributor
I created a 2D Map as a WindowsFormsHost in WPF.  I thought zoom would be part of the AxMapControl class but I did not see it there.  How can I zoom programmatically?  I'm new at this thanks in advance.
0 Kudos
2 Replies
PatrickBurke
Emerging Contributor
I created a 2D Map as a WindowsFormsHost in WPF.  I thought zoom would be part of the AxMapControl class but I did not see it there.  How can I zoom programmatically?  I'm new at this thanks in advance.


You just have to use MapScale. I can't believe this post got 8 views and nobody responded.  Seems like this is going to be one long learning curve.
0 Kudos
JimBarry
Esri Regular Contributor
You just have to use MapScale. I can't believe this post got 8 views and nobody responded.  Seems like this is going to be one long learning curve.


I'm pretty sure you're using the ArcGIS MapControl and not the MapObjects one.  If so, then I think those 8 drive-by views are because you're in the wrong forum.   The people making those views didn't know how to answer you.

I'm going to move this to the ArcObjects forum.  You'll get better replies on these kinds of posts over there.
0 Kudos