|
@@ -54,6 +54,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
InitializeComponent();
|
|
|
viewerTool = new CPDFViewerTool();
|
|
|
toolManager = new CPDFToolManager(viewerTool);
|
|
|
+ Loaded += PDFViewControl_Loaded;
|
|
|
PDFViewTool = viewerTool;
|
|
|
PDFToolManager = toolManager;
|
|
|
PDFToolManager.SetToolType(CPDFToolManager.ToolType.Viewer);
|
|
@@ -64,6 +65,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
FocusPDFViewTool = viewerTool;
|
|
|
PDFView.Child = PDFViewTool;
|
|
|
+ VerticalView.Child = splitViewerTool;
|
|
|
|
|
|
PDFViewTool.SizeChanged -= PDFViewTool_SizeChanged;
|
|
|
PDFViewTool.GetCPDFViewer().MouseWheelZoomHandler -= PDFViewControl_MouseWheelZoomHandler;
|
|
@@ -92,6 +94,12 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
splitToolManager.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler;
|
|
|
splitToolManager.MouseLeftButtonUpHandler += PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
splitToolManager.MouseMoveHandler += PDFToolManager_MouseMoveHandler;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ private void PDFViewControl_Loaded(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ RemoveSplitViewerTool();
|
|
|
}
|
|
|
|
|
|
private void PDFViewTool_DrawChanged(object sender, EventArgs e)
|