Return Value
Returns true if the map view has a previous camera position.
public Task<bool> ZoomToPreviousCameraAsync() { //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.HasPreviousCamera()) return mapView.PreviousCameraAsync(); return Task.FromResult(false); }
Target Platforms: Windows 11, Windows 10, Windows 8.1