A validation event raised when the user opens diagram's ContextMenu.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
SyntaxC#
Copy Code
|
|---|
public event EventHandler<CancelEventArgs> ContextMenuOpening |
Visual Basic
Copy Code
|
|---|
Public Event ContextMenuOpening As EventHandler(Of CancelEventArgs) |
Event DataContextMenuOpening event handlers receive an argument of the System.ComponentModel.CancelEventArgs type.
RemarksThis event is raised if the ContextMenu property of Diagram is set, and the user right-clicks on a point of the diagram that does not contain any items. Set CancelEventArgs.Cancel to true if the context menu should not appear for current state of the application.
See Also