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:


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


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


See Also