Ver Fonte

注释列表-选中注释后,注释列表对应选中 并滚动到对应的item

OYXH\oyxh há 1 ano atrás
pai
commit
380bfce18a
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      PDF Office/Views/BOTA/AnnotationContent.xaml.cs

+ 2 - 3
PDF Office/Views/BOTA/AnnotationContent.xaml.cs

@@ -190,10 +190,9 @@ namespace PDF_Master.Views.BOTA
                         viewModel.IsModified = false;
                         AnnotationList.SelectedItem = obj.annotHandlerArgs;
                         AnnotationList.SelectedIndex = AnnotationList.Items.IndexOf(obj.annotHandlerArgs);
-
-                        await Task.Delay(10);//不加延时 会有不滚动的现象
-                        AnnotationList.ScrollIntoView(AnnotationList.SelectedItem);
                     }
+                    await Task.Delay(10);//不加延时 会有不滚动的现象
+                    AnnotationList.ScrollIntoView(AnnotationList.SelectedItem);
                 }
             }
         }