/// <summary> /// Navigate to center and change resolution with animation /// </summary> /// <param name="center">New center to move to</param> /// <param name="resolution">New resolution to use</param> /// <param name="duration">Duration for animation in milliseconds.</param> /// <param name="easing">The type of easing function used to transform from begin tot end state</param> public void NavigateTo(MPoint center, double resolution, long duration = 0, Easing?easing = default) { if (center == null) { throw new ArgumentNullException(nameof(center)); } _viewport.SetCenterAndResolution(center.X, center.Y, resolution, duration, easing); OnNavigated(duration, ChangeType.Discrete); }