The event handler receives an argument of type CancelableContextMenuInitializingEventArgs containing data related to this event. The following CancelableContextMenuInitializingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
ClickArea | Returns an enumeration that describes the area of the control that was right-clicked. |
ContextMenu | Returns/sets the context menu to be displayed. |
Group | Returns the UltraExplorerBarGroup for which the context menu is being displayed, or null if the context menu does not relate to a group. |
Item | Returns the UltraExplorerBarItem for which the context menu is being displayed, or null if the context menu does not relate to an item. |
This event can be used to either suppress or modify the context menu displayed by the UltraExplorerBar.
Note: When the control's Style property is set to 'OutlookNavigationPane', the ContextMenuInitializing event does not fire for all elements that are right-clicked; in these circumstances, the NavigationContextMenuInitializing event is fired instead.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2