瀏覽代碼

ComPDFKit(win) - 点击打开电子签名属性面板

weixiangjie 10 月之前
父節點
當前提交
67c07f7137
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      Demo/Examples/PDFViewer/MainPage.xaml.cs

+ 5 - 3
Demo/Examples/PDFViewer/MainPage.xaml.cs

@@ -210,21 +210,23 @@ namespace PDFViewer
                 if (baseWidget != null)
                 {
                     AnnotParam annotParam = ParamConverter.CPDFDataConverterToAnnotParam(
-viewControl.PDFViewTool.GetCPDFViewer().GetDocument(),
-baseWidget.GetAnnotData().PageIndex,
-baseWidget.GetAnnotData().Annot);
+                    viewControl.PDFViewTool.GetCPDFViewer().GetDocument(),
+                    baseWidget.GetAnnotData().PageIndex,
+                    baseWidget.GetAnnotData().Annot);
                     if ((annotParam as WidgetParm).WidgetType == C_WIDGET_TYPE.WIDGET_SIGNATUREFIELDS)
                     {
                         if (currentMode == "Annotation")
                         {
                             CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
                             signatureProperty.SetFormProperty(annotParam, viewControl, baseWidget.GetAnnotData().Annot);
+                            panelState.RightPanel = PanelState.RightPanelState.PropertyPanel;
                             annotationControl.SetPropertyContainer(signatureProperty);
                         }
                         else if (currentMode == "Viewer")
                         {
                             CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
                             signatureProperty.SetFormProperty(annotParam, viewControl, baseWidget.GetAnnotData().Annot);
+                            panelState.RightPanel = PanelState.RightPanelState.PropertyPanel;
                             regularViewerControl.SetPropertyContainer(signatureProperty);
                         }
                     }