PDFEditVM.cs 1.3 KB

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