|
@@ -134,7 +134,6 @@ namespace PDFViewer
|
|
|
pdfViewer.PDFView.ChangeFitMode(FitMode.FitWidth);
|
|
|
CPDFSaclingControl.InitWithPDFViewer(pdfViewer.PDFView);
|
|
|
ModeComboBox.SelectedIndex = 0;
|
|
|
- regularViewerControl.IsActive = true;
|
|
|
|
|
|
CPDFSaclingControl.SetZoomTextBoxText(string.Format("{0}", (int)(pdfViewer.PDFView.ZoomFactor * 100)));
|
|
|
|
|
@@ -316,25 +315,21 @@ namespace PDFViewer
|
|
|
if (currentMode == "Viewer")
|
|
|
{
|
|
|
regularViewerControl.ClearViewerControl();
|
|
|
- regularViewerControl.IsActive = false;
|
|
|
}
|
|
|
else if (currentMode == "Annotation")
|
|
|
{
|
|
|
annotationControl.UnloadEvent();
|
|
|
annotationControl.ClearViewerControl();
|
|
|
- annotationControl.IsActive = false;
|
|
|
}
|
|
|
else if (currentMode == "Form")
|
|
|
{
|
|
|
formControl.ClearViewerControl();
|
|
|
formControl.UnloadEvent();
|
|
|
formControl.ClearViewerControl();
|
|
|
- formControl.IsActive = false;
|
|
|
}
|
|
|
else if (currentMode == "Content Editor")
|
|
|
{
|
|
|
contentEditControl.ClearViewerControl();
|
|
|
- contentEditControl.IsActive = false;
|
|
|
}
|
|
|
else if (currentMode == "Docs Editor")
|
|
|
{
|
|
@@ -344,7 +339,6 @@ namespace PDFViewer
|
|
|
|
|
|
if (item.Content as string == "Viewer")
|
|
|
{
|
|
|
- regularViewerControl.IsActive = true;
|
|
|
if (regularViewerControl.PdfViewControl != null && regularViewerControl.PdfViewControl.PDFView != null)
|
|
|
{
|
|
|
PDFGrid.Child = regularViewerControl;
|
|
@@ -359,7 +353,6 @@ namespace PDFViewer
|
|
|
}
|
|
|
else if (item.Content as string == "Annotation")
|
|
|
{
|
|
|
- annotationControl.IsActive = true;
|
|
|
annotationControl.SetToolBarContainerVisibility(Visibility.Visible);
|
|
|
if (annotationControl.PDFViewControl != null && annotationControl.PDFViewControl.PDFView != null)
|
|
|
{
|
|
@@ -379,7 +372,6 @@ namespace PDFViewer
|
|
|
}
|
|
|
else if (item.Content as string == "Form")
|
|
|
{
|
|
|
- formControl.IsActive = true;
|
|
|
formControl.SetToolBarContainerVisibility(Visibility.Visible);
|
|
|
if (formControl.PdfViewControl != null && formControl.PdfViewControl.PDFView != null)
|
|
|
{
|
|
@@ -398,7 +390,6 @@ namespace PDFViewer
|
|
|
}
|
|
|
else if (item.Content as string == "Content Editor")
|
|
|
{
|
|
|
- contentEditControl.IsActive = true;
|
|
|
if (contentEditControl.pdfContentEditControl != null && contentEditControl.PdfViewControl.PDFView != null)
|
|
|
{
|
|
|
pdfViewer.PDFView?.SetPDFEditType(CPDFEditType.EditText | CPDFEditType.EditImage);
|