A validation event raised when the user opens diagram's ContextMenu.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public event EventHandler<CancelEventArgs> ContextMenuOpening |
Visual Basic Copy Code |
---|
Public Event ContextMenuOpening As EventHandler(Of CancelEventArgs) |
ContextMenuOpening event handlers receive an argument of the System.ComponentModel.CancelEventArgs type.
This 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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |