Context Menu
RadPdfViewer has a default context menu - PdfViewerContextMenu which provides a quick way of performing a number of commands. However, you can replace this menu with a custom one by setting the RadContextMenu property of the RadPdfViewer.
New Context Menu
You can also use the ShowMenu method to show the context menu programmatically at a specified location.
Show Context Menu
The context menu can change dynamically. For example, when the Text Selection mode is enabled, Copy and Select All items are displayed in the menu with a separator below them:
FixedDocumentViewerMode.Pan | FixedDocumentViewerMode.TextSelection |
---|---|
![]() |
![]() |
Additionally, you can easily add a custom menu item to the context menu. You can find below a sample code snippet: