public void Zoom(double ratio)
{
if (!double.IsNaN(this.mapResolution))
{
Point pnt = this.rootElement.TransformToVisual(this.layerCollectionContainer).Transform(new Point(currentSize.Width / 2.0, currentSize.Height / 2.0));
pnt.X = Math.Round(pnt.X);
pnt.Y = Math.Round(pnt.Y);
Point2D center = this.panLayerToMap(pnt);
if (!Point2D.IsNullOrEmpty(center))
{
this.zoomAbout(ratio, center, false);
}
}
}
private void zoomAbout(double factor, Point2D center, bool skipAnimation)