CPDFImageFlipUI.xaml.cs 645 B

123456789101112131415161718192021222324252627
  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 UI Event
  14. private void FlipVertical_Click(object sender, RoutedEventArgs e)
  15. {
  16. FlipChanged?.Invoke(this, true);
  17. }
  18. private void FlipHorizontal_Click(object sender, RoutedEventArgs e)
  19. {
  20. FlipChanged?.Invoke(this, false);
  21. }
  22. #endregion
  23. }
  24. }