Hi,
We are developing WPF application using ArcGIS Runtime SDK for Dot Net.
How to control the zoom in and zoom out on mouse wheel in scene view.
we need to set min and max value for zoom in and out. How to do this?
Please help
Thanks
Depends on what you want to do:
Either you can listen to the MouseWheel Event or you try to react after in the ViewpointChanged Event and set the viewpoint to the allowed focus.
Maybe this gives you an idea:https://developers.arcgis.com/net/wpf/sample-code/geoview-viewpoint-synchronization/
In the SceneView there isn't really "zoom". It's a camera that moves forward or backwards when the mouse wheel event fires. So I'm guessing what you really want is a way to control how low or high you can go above the ground?You could listen to the PreviewMouseWheel event and if your camera altitude is a certain level, set e.Handled = true to prevent the SceneView from reacting to the wheel event.
Hi MaximilianGlas & dotMorten_esri
Thank you for your support, I got a result, thank you so much again
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.