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().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(ParameterNames.PDFViewer, out PDFViewer); } } }