{
//Note: Needs QueuedTask to run
{
//Expand the current extent by the given ratio.
var extent = mapView.Extent;
var newExtent = GeometryEngine.Instance.Expand(extent, dx, dy, true);
mapView.ZoomTo(newExtent);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)