private void mirror_Click(object sender, RoutedEventArgs e) { Dialogs.Mirror dlg = new Dialogs.Mirror(); dlg.Owner = this; dlg.mirror = RotateFlipType.RotateNoneFlipNone; if (dlg.ShowDialog() == true) { myImage.image.RotateFlip(dlg.mirror); } mainImage.Source = myImage.scr_image; mainImage.InvalidateVisual(); }