using ComPDFKitViewer;
using ComPDFKitViewer.PdfViewer;
using Microsoft.Office.Interop.Word;
using PDF_Office.Helper;
using PDF_Office.Model;
using PDF_Office.Views;
using PDFSettings.Settings;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Forms;
namespace PDF_Office.ViewModels.PropertyPanel.ViewModular
{
public class ViewModularContentViewModel : BindableBase, INavigationAware
{
private IRegionManager region;
private IDialogService dialogs;
//记录 单页 双页 书本模式
private ViewMode viewmode = ViewMode.Single;
public CPDFViewer PDFViewer { get; set; }
public BottomToolContentViewModel BottomToolContentViewModel { get; set; }
public ViewContentViewModel ViewContentViewModel { get; set; }
public string SplitScreenViewRegionName { get; set; }
public string ThemesContentName { get; set; }
private Visibility splitScreenViewVisible = Visibility.Collapsed;
///
/// 控制Content的显示 用于显示分屏的模块
///
public Visibility SplitScreenViewVisible
{
get { return splitScreenViewVisible; }
set
{
SetProperty(ref splitScreenViewVisible, value);
}
}
private bool isContinue;
public bool IsContinue
{
get { return isContinue; }
set
{
SetProperty(ref isContinue, value);
if (value)
{
SetModeView();
}
}
}
private bool isPagesBreak = true;
public bool IsPagesBreak
{
get { return isPagesBreak; }
set
{
SetProperty(ref isPagesBreak, value);
}
}
private bool isSingleView;
public bool IsSingleView
{
get { return isSingleView; }
set
{
SetProperty(ref isSingleView, value);
if (value)
{
SetModeView();
}
}
}
private bool isTwoPageView;
public bool IsTwoPageView
{
get { return isTwoPageView; }
set
{
SetProperty(ref isTwoPageView, value);
if (value)
{
SetModeView();
}
}
}
private bool isBookModeView;
public bool IsBookModeView
{
get { return isBookModeView; }
set
{
SetProperty(ref isBookModeView, value);
if (value)
{
SetModeView();
}
}
}
public DelegateCommand