Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 2.99 KB

File metadata and controls

36 lines (22 loc) · 2.99 KB

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)