CPDFImageFlipUI.xaml.cs 842 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. namespace Compdfkit_Tools.Edit
  5. {
  6. public partial class CPDFImageFlipUI : UserControl
  7. {
  8. public event EventHandler<bool> FlipChanged;
  9. public CPDFImageFlipUI()
  10. {
  11. InitializeComponent();
  12. }
  13. public Orientation Orientation
  14. {
  15. get
  16. {
  17. return ImageFlipUI.Orientation;
  18. }
  19. set
  20. {
  21. ImageFlipUI.Orientation = value;
  22. }
  23. }
  24. private void FlipVertical_Click(object sender, RoutedEventArgs e)
  25. {
  26. FlipChanged?.Invoke(this, true);
  27. }
  28. private void FlipHorizontal_Click(object sender, RoutedEventArgs e)
  29. {
  30. FlipChanged?.Invoke(this, false);
  31. }
  32. }
  33. }