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

Namespace: yWorks.Canvas.Input
Assembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)

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 WPF tutorials for step by step introductions.

Inheritance Hierarchy

System..::..Object
  yWorks.Canvas.Input..::..AbstractInputMode
    yWorks.Canvas.Input..::..AbstractConcurrentInputMode
      yWorks.Canvas.Input..::..ContextMenuInputMode

See Also