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