An implementation of the IInputMode interface that will display a ContextMenuStrip when the user right clicks on the CanvasControl.

Namespace: yWorks.Canvas.Input
Assembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)

Syntax

C#
public class ContextMenuInputMode : AbstractConcurrentInputMode
Visual Basic
Public Class ContextMenuInputMode _
	Inherits AbstractConcurrentInputMode

Remarks

One can register a callback that can be used to customize the contents of the menu strip depending on the coordinate in the world coordinate system where the menu strip has been opened.

Related Demo Applications

The following programming samples are available: Also see the yFiles.NET tutorials for step by step introductions.

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    System.ComponentModel..::..Component
      yWorks.Canvas.Input..::..AbstractInputMode
        yWorks.Canvas.Input..::..AbstractConcurrentInputMode
          yWorks.Canvas.Input..::..ContextMenuInputMode

See Also