/// <summary> /// Handles the Click event of the RotateClockwiseButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void RotateClockwiseButton_Click(object sender, RoutedEventArgs e) { if (Container.Source != null && Container.Source.IsFilled) { Container.Source = ExtendedImage.Transform(Container.Source, RotationType.Rotate90, FlippingType.None); } }
/// <summary> /// Handles the Click event of the FlipVerticalButton control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void FlipVerticalButton_Click(object sender, RoutedEventArgs e) { if (Container.Source != null && Container.Source.IsFilled) { Container.Source = ExtendedImage.Transform(Container.Source, RotationType.None, FlippingType.FlipY); } }