CPDFImageFlipUI.xaml.cs 934 B

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