Skip to content

Commit 7a16708

Browse files
Added annotation loaded comment UG
1 parent 310a513 commit 7a16708

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Document-Processing/PDF/PDF-Viewer/maui/Annotation-Collection.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,22 @@ private void OnDocumentLoaded(object sender, EventArgs e)
3939
}
4040
}
4141
{% endhighlight %}
42-
{% endtabs %}
42+
{% endtabs %}
43+
44+
## AnnotationsLoaded event
45+
The AnnotationsLoaded event occurs after all annotations in the PDF have finished loading, either when the document is opened or when annotations are imported. You can use this event to perform actions once annotations are fully available in the viewer. The following example explains how to wire and handle the event.
46+
47+
{% tabs %}
48+
{% highlight c# %}
49+
void WireAnnotationsLoadedEvent()
50+
{
51+
// Wire the annotations loaded event of [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html).
52+
pdfViewer.AnnotationsLoaded += OnAnnotationsLoaded;
53+
}
54+
55+
private void OnAnnotationsLoaded(object? sender, EventArgs e)
56+
{
57+
Debug.WriteLine("All existing annotations have been loaded.");
58+
}
59+
{% endhighlight %}
60+
{% endtabs %}

0 commit comments

Comments
 (0)