public void ResetSize() { //ImageHeight = _DefaultHeight; //ImageWidth = _DefaultWidth; Canvas.SetLeft(PhotoBorder, 0); Canvas.SetTop(PhotoBorder, 0); Canvas.SetLeft(canvasEdit, 0); Canvas.SetTop(canvasEdit, 0); ActionShow.ResetZoom(PhotoBorder); //PhotoBorder.Width = Width; //PhotoBorder.Height = Height; //double zoomX = canvasEdit.Width / Width; //double zoomY = canvasEdit.Height / Height; //if (zoomX == 0) { zoomX = 1; } //if (zoomY == 0) { zoomY = 1; } //ActionShow.XZoomCanvasIn(canvasEdit, 1 / zoomX); //ActionShow.YZoomCanvasIn(canvasEdit, 1 / zoomY); }