Installs this mode into the given context that is provided by the canvas. In general a mode can only be installed into a single canvas at all times.

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

Syntax

C#
void Install( IInputModeContext context )
Visual Basic
Sub Install ( _ context As IInputModeContext _ )

Parameters

context
Type: yWorks.Canvas.Input..::..IInputModeContext
The context that this instance shall be installed into. The same instance will be passed to this instance during Uninstall(IInputModeContext). A reference to the context may be kept and queried during the time the mode is installed.

Remarks

This method is called to initialize this instance. Subclasses should override this method to register the corresponding event handler delegates for the various input events they need to register with.
When this instance gets uninstalled from the context the same context instance will be passed to it.
Implementations may hold a reference to the context instance and use it while they are being installed.

See Also