public void StepMapTime() { //Get the active view MapView mapView = MapView.Active; if (mapView == null) return; //Step current map time forward by 1 month TimeDelta timeDelta = new TimeDelta(1, TimeUnit.Months); mapView.Time = mapView.Time.Offset(timeDelta); }
Target Platforms: Windows 10, Windows 8.1, Windows 7