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

Namespace: yWorks.Canvas.Input
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

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

Remarks

Since there is no default implementation of a context menu in Silverlight 4, a custom implementation needs to be connected to this instance. The methods MenuOpening(CancelEventArgs), MenuClosed()()()() and the event CloseMenu should be used to communicate to this instance whenever the context menu is opened or closed. 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 for Silverlight tutorials for step by step introductions.

Inheritance Hierarchy

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

See Also