using ComPDFKitViewer;
using ComPDFKitViewer.AnnotEvent;
using ComPDFKitViewer.PdfViewer;
using PDF_Office.Helper;
using PDF_Office.Model;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;
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.Form
{
public class FormsToolContentViewModel : BindableBase, INavigationAware
{
#region 属性
///
/// 显示PreView按钮
///
public Visibility ShowPreView
{
get { return showPreView; }
set
{
SetProperty(ref showPreView, 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 _isMoreCheckedBtn = false;
public bool IsMoreCheckedBtn { get { return _isMoreCheckedBtn; } set { SetProperty(ref _isMoreCheckedBtn, value); } }
private bool _isAlignmentCheckedBtn = false;
public bool IsAlignmentCheckedBtn { get { return _isAlignmentCheckedBtn; } set { SetProperty(ref _isAlignmentCheckedBtn, value); } }
#endregion
#region 变量
private CPDFViewer PDFViewer;
public ViewContentViewModel viewContentViewModel;
private IRegionManager regions;
private string CurrentToolBtnType;
///
/// 按钮和属性面板键值对
///
private Dictionary btnToProperty = new Dictionary();
private Visibility showPreView;
#endregion
#region Command变量
public DelegateCommand CheckedCommand { get; set; }
public DelegateCommand CancleCheckedCommand { get; set; }
public DelegateCommand ClickCommand { get; set; }
public DelegateCommand