|
@@ -118,6 +118,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
public ContentEditControl()
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
+ panelState.PropertyChanged -= PanelState_PropertyChanged;
|
|
|
panelState.PropertyChanged += PanelState_PropertyChanged;
|
|
|
}
|
|
|
|
|
@@ -356,13 +357,11 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
{
|
|
|
PdfViewControl.PDFViewTool.GetCPDFViewer().UndoManager.PropertyChanged -= UndoManager_PropertyChanged;
|
|
|
PdfViewControl.PDFViewTool.GetCPDFViewer().UndoManager.PropertyChanged += UndoManager_PropertyChanged;
|
|
|
- PdfViewControl.PDFToolManager.MouseLeftButtonDownHandler -= PDFToolManager_MouseLeftButtonDownHandler;
|
|
|
- PdfViewControl.PDFToolManager.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler;
|
|
|
- PdfViewControl.PDFToolManager.MouseLeftButtonUpHandler -= PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
- PdfViewControl.PDFToolManager.MouseLeftButtonUpHandler += PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
+ PdfViewControl.MouseLeftButtonDownHandler -= PDFToolManager_MouseLeftButtonDownHandler;
|
|
|
+ PdfViewControl.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler;
|
|
|
+ PdfViewControl.MouseLeftButtonUpHandler -= PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
+ PdfViewControl.MouseLeftButtonUpHandler += PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
PdfViewControl = view;
|
|
|
- PdfViewControl.SplitPDFViewToolCreated -= PdfViewControl_SplitPDFViewToolCreated;
|
|
|
- PdfViewControl.SplitPDFViewToolCreated += PdfViewControl_SplitPDFViewToolCreated;
|
|
|
PDFGrid.Child = PdfViewControl;
|
|
|
FloatPageTool.InitWithPDFViewer(view);
|
|
|
pdfContentEditControl.InitWithPDFViewer(view);
|
|
@@ -373,7 +372,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
{
|
|
|
if (e.IsCreate)
|
|
|
{
|
|
|
- PdfViewControl.PDFViewTool.GetCPDFViewer().SetIsShowStampMouse(false);
|
|
|
+ PdfViewControl.SetIsShowStampMouse(false);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -423,6 +422,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
UIElement pageView = sender as UIElement;
|
|
|
if (pageView != null)
|
|
|
{
|
|
|
+ pageView.MouseLeftButtonUp -= PageView_MouseLeftButtonUp;
|
|
|
pageView.MouseLeftButtonUp += PageView_MouseLeftButtonUp;
|
|
|
}
|
|
|
PDFEditParam pDFEditParam = ParamConverter.CPDFDataConverterToPDFEitParam(PdfViewControl.PDFToolManager.GetDocument(), editAreaArea, PageIndex);
|
|
@@ -479,6 +479,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
UIElement pageView = sender as UIElement;
|
|
|
if (pageView != null)
|
|
|
{
|
|
|
+ pageView.MouseLeftButtonUp -= PageView_MouseLeftButtonUp;
|
|
|
pageView.MouseLeftButtonUp += PageView_MouseLeftButtonUp;
|
|
|
}
|
|
|
pdfContentEditControl.SetPDFImageEditData((ImageEditParam)e);
|