void Load(string filename) { ConvertButton.Visibility = Visibility.Visible; ClosePanelButton.Visibility = Visibility.Collapsed; // Reset zoom etc SaveImageViewBox.Reset(); LoadedImageViewBox.Reset(); vm.LoadImage(filename); }
private void ImageCloseButton_Click(object sender, RoutedEventArgs e) { // Reset scaling and position LoadedImageViewBox.Reset(); SaveImageViewBox.Reset(); }