瀏覽代碼

内容选择器 右键菜单闪现消失的问题,sdk库有更新,需要确认哪边提交

OYXH\oyxh 1 年之前
父節點
當前提交
bd28c6463d
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Command.cs

+ 11 - 0
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Command.cs

@@ -1253,6 +1253,17 @@ namespace PDF_Master.ViewModels.Tools
                         menuItem.CommandTarget = PDFViewer;
                         menuItem.Command = SnapshotEditMenuViewModel.PrintCommand;
                     }
+
+                    //解决内容选择器 右键菜单闪现消失的问题,sdk库有更新,需要确认哪边提交
+                    System.Threading.Tasks.Task.Factory.StartNew(() =>
+                    {
+                        System.Threading.Thread.Sleep(200);
+                        PDFViewer.Dispatcher.Invoke(() =>
+                        {
+                            popMenu.IsOpen = true;
+                            popMenu.StaysOpen = true;
+                        });
+                    });
                 }
             }
         }