Parameters
- start
- The start time to scale.
- end
- The end time to scale.
- factor
- The factor to scale by.
{
var animation = mapView.Map.Animation;
var duration = animation.Duration;
if (duration == TimeSpan.Zero || duration <= afterTime)
{
// Nothing to scale, leave
}
var factor = length.TotalSeconds / (duration.TotalSeconds - afterTime.TotalSeconds);
animation.ScaleDuration(afterTime, duration, factor);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)