Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Field Maps
ArcGIS Dashboards
ArcGIS StoryMaps
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Natural Resources
Telecommunications
Imagery and Remote Sensing Insights (IRIS) COP
Electric
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Europe
Asia Pacific
Americas
Comunidad GEOTEC
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcGIS API Silverlight (Retired)
:
ArcGIS API Silverlight Questions
:
WPF Control: Zoom with mouse wheel to center of ma...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
WPF Control: Zoom with mouse wheel to center of map
Subscribe
1881
1
12-22-2010 06:47 AM
by
LukasPlatz
Emerging Contributor
12-22-2010
06:47 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Hi,
when zooming in/out with the mouse wheel, the WPF Map Control zooms always to the acual mouse position. How is it possible to zoom always to the center of the map using the mouse wheel?
Stefan
Tags
(2)
Tags:
silverlight
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
1 Reply
by
JenniferNery
Esri Regular Contributor
01-09-2011
12:19 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
MouseWheel zoom with respect to current mouse position is by design. If you need to zoom to center, you may call MyMap.ZoomToResolution
http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~ZoomTo...
.
For example, the following code will zoom in around the center of the current extent.
MapPoint center = MyMap.Extent.GetCenter(); MyMap.ZoomToResolution(MyMap.Resolution/2, center );
Reply
0
Kudos
Post Reply