void Image_Loaded(object sender, EventArgs e) { _model.TotalWidth = MainGrid.Width = _image.PixelWidth; _model.TotalHeight = MainGrid.Height = _image.PixelHeight; _model.CalculateMinAndMax(); _model.CenterAndFit(); UpdateView(); }