| Visual Basic (Declaration) | |
|---|---|
Public Event OpenContextMenu As System.EventHandler(Of OpenContextMenuEventArgs) | |
| C# | |
|---|---|
public event System.EventHandler<OpenContextMenuEventArgs> OpenContextMenu | |
The event handler receives an argument of type OpenContextMenuEventArgs containing data related to this event. The following OpenContextMenuEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| ControlType | Gets a PivotViewControlType object which indicates which element the mouse is pointing to. |
| Data | Gets the information about the mouse clicking. |
| Handled | Gets or sets a tag which indicates whether the user want to customize the context menu. When setting to True, it indicates the default menu willn't display and the user can draw his own menu. Otherwise, it uses the default menu. |
| MousePosition | Gets the screen position where the mouse locates. |
The user can customize the menu in this event handler by setting Handled to True in the event arguments.
Target Platforms: 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