FillAndSignContent.xaml.cs 1.2 KB

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