FillAndSignContent.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using ComPDFKitViewer.AnnotEvent;
  2. using ComPDFKitViewer.PdfViewer;
  3. using PDF_Master.ViewModels;
  4. using PDF_Master.ViewModels.Dialog.ConverterDialogs;
  5. using PDF_Master.ViewModels.FillAndSign;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows;
  12. using System.Windows.Controls;
  13. using System.Windows.Data;
  14. using System.Windows.Documents;
  15. using System.Windows.Input;
  16. using System.Windows.Media;
  17. using System.Windows.Media.Imaging;
  18. using System.Windows.Navigation;
  19. using System.Windows.Shapes;
  20. namespace PDF_Master.Views.FillAndSign
  21. {
  22. /// <summary>
  23. /// FillAndSignContent.xaml 的交互逻辑
  24. /// </summary>
  25. public partial class FillAndSignContent : UserControl
  26. {
  27. public FillAndSignContent()
  28. {
  29. InitializeComponent();
  30. }
  31. private void RbtnTick_Click(object sender, MouseButtonEventArgs e)
  32. {
  33. var a = sender as RadioButton;
  34. if (a.IsChecked == true)
  35. {
  36. a.IsChecked = false;
  37. //((FillAndSignContentViewModel)this.DataContext).PDFViewer.DisableClearSelectAnnot(false);
  38. //((FillAndSignContentViewModel)this.DataContext).PDFViewer.ClearSelectAnnots();
  39. ((FillAndSignContentViewModel)this.DataContext).ExitAnnotationTool();
  40. //((FillAndSignContentViewModel)this.DataContext).PDFViewer.SetMouseMode(MouseModes.PanTool);
  41. e.Handled = true;
  42. }
  43. else { a.IsChecked = true; }
  44. }
  45. }
  46. }