12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using ComPDFKitViewer.PdfViewer;
- using PDF_Office.EventAggregators;
- using PDF_Office.Model.EditTools.Background;
- using PDF_Office.Model;
- using Prism.Commands;
- using Prism.Events;
- using Prism.Mvvm;
- using Prism.Regions;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using PDF_Office.Model.EditTools.Watermark;
- namespace PDF_Office.ViewModels.EditTools.Watermark
- {
- public class WatermarkDocumentContentViewModel : BindableBase
- {
- public IEventAggregator eventAggregator;
- public CPDFViewer PDFViewer;
- public WatermarkDocumentContentViewModel(IEventAggregator eventAggregator)
- {
- this.eventAggregator = eventAggregator;
- eventAggregator.GetEvent<SetWatermarkEvent>().Subscribe(SetWatermark);
- }
- public void SetWatermark(WatermarkInfo watermarkInfo)
- {
- }
- public bool IsNavigationTarget(NavigationContext navigationContext)
- {
- return true;
- }
- public void OnNavigatedFrom(NavigationContext navigationContext)
- {
- }
- public void OnNavigatedTo(NavigationContext navigationContext)
- {
- navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
- }
- }
- }
|