An implementation of the IInputMode interface that will
display a ItemsControl when the user right clicks on the
CanvasControl.
Namespace: yWorks.Canvas.InputAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
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
Inheritance Hierarchy
System..::..Object
yWorks.Canvas.Input..::..AbstractInputMode
yWorks.Canvas.Input..::..AbstractConcurrentInputMode
yWorks.Canvas.Input..::..ContextMenuInputMode
yWorks.Canvas.Input..::..AbstractInputMode
yWorks.Canvas.Input..::..AbstractConcurrentInputMode
yWorks.Canvas.Input..::..ContextMenuInputMode