Kaynağa Gözat

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

OYXH\oyxh 1 yıl önce
ebeveyn
işleme
380bfce18a

+ 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);
                 }
             }
         }