MindFusion.Wpf Pack Programmer's Guide
DiagramBase.ContextMenuOpening Event
See Also
 





A validation event raised when the user opens diagram's ContextMenu.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public event EventHandler<CancelEventArgs> ContextMenuOpening

Visual Basic  Copy Code

Public Event ContextMenuOpening As EventHandler(Of CancelEventArgs)

 Event Data

ContextMenuOpening event handlers receive an argument of the System.ComponentModel.CancelEventArgs type.

 Remarks

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.

 See Also

DiagramBase Members
DiagramBase Class
MindFusion.Diagramming.Wpf Namespace
LinkMenuOpening Event
NodeMenuOpening Event