Skip to content

Handle the PdfViewer.PopupMenuShowing event to manage the pop-up menu in the PDF Viewer for WInForms

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-pdf-viewer-manage-popup-menu-items

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Viewer for WinForms - Customize the Pop-Up Menu

The WinForms PDF Viewer has several types of popup menus the user can invoke for bookmark options, bookmark tree, page content, a thumbnail, and thumbnail options.

This example shows how to add a new item, hide the popup menu for the bookmark tree, and remove specific items from the page content popup menu.

Implementation Details

To customize items of the PDF Viewer's popup menu, handle the PdfViewer.PopupMenuShowing event. This event fires every time a user opens a popup menu in the PDF Viewer. 

Each popup menu type has a unique set of bar items that are located in the bar item link collection. To access a bar item link collection, check the PdfPopupMenuShowingEventArgs.PopupMenuKind property value to determine the menu type and use the PdfPopupMenuShowingEventArgs.ItemLinks property.

To hide a popup menu, clear all items from the bar item link collection. To remove an item from the popup menu, find the item by its command ID and then remove it.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Handle the PdfViewer.PopupMenuShowing event to manage the pop-up menu in the PDF Viewer for WInForms

Topics

Resources

License

Stars

Watchers

Forks