PDFEditVM.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using ComPDFKitViewer;
  2. using ComPDFKitViewer.PdfViewer;
  3. using PDF_Office.CustomControl.CompositeControl;
  4. using PDF_Office.Model.AnnotPanel;
  5. using PDF_Office.Model.PropertyPanel.AnnotPanel;
  6. using Prism.Mvvm;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows;
  13. using System.Windows.Controls;
  14. using System.Windows.Input;
  15. using System.Windows.Media;
  16. namespace PDF_Office.ViewModels.PropertyPanel.PDFEdit
  17. {
  18. public class PDFEditVM: FontBoard
  19. {
  20. #region 变量
  21. protected PDFEditEvent TextEditEvent;
  22. protected CPDFViewer PDFViewer;
  23. #endregion
  24. #region 编辑PDF全局
  25. //平均对齐布局
  26. private bool _isLayoutAvgAlign = false;
  27. public bool IsLayoutAvgAlign { get { return _isLayoutAvgAlign; } set { SetProperty(ref _isLayoutAvgAlign, value); } }
  28. //对齐布局
  29. private bool _isLayoutAlign = false;
  30. public bool IsLayoutAlign { get { return _isLayoutAlign; } set { SetProperty(ref _isLayoutAlign, value); } }
  31. #endregion
  32. protected void SetPopMenuItem(MenuItem menu, object sender, ICommand command)
  33. {
  34. MenuItem menuItem = menu;
  35. menuItem.CommandTarget = (UIElement)sender;
  36. menuItem.Command = command;
  37. }
  38. }
  39. }