Ver código fonte

compdfkit(win) -fix: 切换到编辑模式未折叠部分显示设置,页面编辑模式第一次切换多选问题

liuaoran 1 ano atrás
pai
commit
e32e1e2545

+ 0 - 7
Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageEdit/CPDFPageEditControl.xaml.cs

@@ -123,7 +123,6 @@ namespace Compdfkit_Tools.PDFControl
         public CPDFPageEditControl()
         {
             InitializeComponent();
-            SetLangText();
         }
 
         public void PageEdit(string PageEditString)
@@ -194,11 +193,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        private void SetLangText()
-        {
-
-        }
-
         private void Timer_Tick(object sender, EventArgs e)
         { 
             AlertBorder.Visibility = Visibility.Collapsed;
@@ -2156,7 +2150,6 @@ namespace Compdfkit_Tools.PDFControl
 
         private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
         {
-            DoSelectItems();
             ItemsInViewHitTest(); 
         }
     }

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

@@ -40,7 +40,7 @@ namespace PDFViewer
         private CPDFPageEditControl pageEditControl = null;
         private FromPropertyControl pdfFormControl = new FromPropertyControl();
         private PDFImageEditControl imageEditControl = null;
-        private CPDFDisplaySettingsControl displayPanel = null;
+        private CPDFDisplaySettingsControl displayPanel = new CPDFDisplaySettingsControl();
 
         private double[] zoomLevelList = { 1f, 8f, 12f, 25, 33f, 50, 66f, 75, 100, 125, 150, 200, 300, 400, 600, 800, 1000 };
         public bool CanSave
@@ -1159,8 +1159,7 @@ namespace PDFViewer
             if (ViewSettingBtn != null)
             {
                 if (ViewSettingBtn.IsChecked == true)
-                {
-                    displayPanel = new CPDFDisplaySettingsControl();
+                { 
                     displayPanel.InitWithPDFViewer(pdfViewControl.PDFView);
                     PropertyContainer.Child = displayPanel;
                     PropertyContainer.Visibility = Visibility.Visible;