using ComPDFKitViewer; using ComPDFKitViewer.PdfViewer; using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace PDF_Office.ViewModels.PropertyPanel.PDFEdit { public class PDFEditVM: BindableBase { #region 变量 protected PDFEditEvent TextEditEvent; protected CPDFViewer PDFViewer; #endregion #region 编辑PDF全局 //多选时,选中的既是文本也是图像 private bool _isSelectTextAndImg = false; public bool IsSelectTextAndImg { get { return _isSelectTextAndImg; } set { SetProperty(ref _isSelectTextAndImg, value); } } //平均对齐布局 private bool _isLayoutAvgAlign = false; public bool IsLayoutAvgAlign { get { return _isLayoutAvgAlign; } set { SetProperty(ref _isLayoutAvgAlign, value); } } //对齐布局 private bool _isLayoutAlign = false; public bool IsLayoutAlign { get { return _isLayoutAlign; } set { SetProperty(ref _isLayoutAlign, value); } } //是否为文本 private bool _isTextEdit = true; public bool IsTextEdit { get { return _isTextEdit; } set { SetProperty(ref _isTextEdit, value); } } #endregion protected void SetPopMenuItem(MenuItem menu, object sender, ICommand command) { MenuItem menuItem = menu; menuItem.CommandTarget = (UIElement)sender; menuItem.Command = command; } } }