Return Value
Returns true if the map view has a next camera position.
public Task<bool> ZoomToNextCameraAsync() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return Task.FromResult(false); //Zoom to the selected layers in the TOC if (mapView.HasNextCamera()) return mapView.NextCameraAsync(); return Task.FromResult(false); }
Target Platforms: Windows 11, Windows 10