|
@@ -574,13 +574,12 @@ namespace PDFViewer
|
|
|
else if (item.Tag as string == "Annotation")
|
|
|
{
|
|
|
annotationControl.SetToolBarContainerVisibility(Visibility.Visible);
|
|
|
- PDFGrid.Child = annotationControl;
|
|
|
-
|
|
|
- viewControl.SetToolType(ToolType.Pan);
|
|
|
annotationControl.PDFViewControl = viewControl;
|
|
|
annotationControl.InitWithPDFViewer(viewControl);
|
|
|
if (annotationControl.PDFViewControl != null)
|
|
|
{
|
|
|
+ PDFGrid.Child = annotationControl;
|
|
|
+ viewControl.SetToolType(ToolType.Pan);
|
|
|
annotationControl.OnCanSaveChanged -= ControlOnCanSaveChanged;
|
|
|
annotationControl.OnCanSaveChanged += ControlOnCanSaveChanged;
|
|
|
|