CPDFStampUI.xaml.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using compdfkit_tools.Data;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace compdfkit_tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
  17. {
  18. /// <summary>
  19. /// CPDFStampUI.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class CPDFStampUI : UserControl
  22. {
  23. public event EventHandler<CPDFAnnotationData> PropertyChanged;
  24. public CPDFStampUI()
  25. {
  26. InitializeComponent();
  27. }
  28. public void InitWithAnnotationType(AnnotationType annotationType)
  29. {
  30. //doing something....
  31. }
  32. private void Button_Click(object sender, RoutedEventArgs e)
  33. {
  34. }
  35. private void CPDFOpacityControl_OpacityChanged(object sender, EventArgs e)
  36. {
  37. PropertyChanged?.Invoke(this,new CPDFStampData());
  38. }
  39. private void Text_Click(object sender, RoutedEventArgs e)
  40. {
  41. CreateStampDialog createStampDialog = new CreateStampDialog();
  42. createStampDialog.Owner = Window.GetWindow(this);
  43. createStampDialog.ShowDialog();
  44. }
  45. }
  46. }