Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,

I need to save the bounds of a rectangle annotation. To achieve this, I'm handling the ShapeAnnotationChangedEventArgs when adding, editing, or deleting annotations. Since the bounds in the event arguments differ from the actual annotation, I'm loading the annotations from Page[i].Annotations.

On the first event, this works perfectly, but after subsequent events, LoadedDocument returns null. To work around this, I created the following method:

Zrzut ekranu 2024-10-11 140816.png

While this solution works, the performance deteriorates with each added annotation, eventually causing delays of 2-3 seconds when loading the document.

Is there any way to improve efficiency?