Interface for an object that can handle the position of an item displayed in a CanvasControl

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


public interface IPositionHandler : IDragHandler
Visual Basic
Public Interface IPositionHandler _ Inherits IDragHandler


The point as indicated by Location describes the current world coordinate position of the element. It is up to the implementation how this position is interpreted. The values returned by that instance will be used for the "originalLocation" parameter in the HandleMove(IInputModeContext, PointD, PointD), CancelDrag(IInputModeContext, PointD) and DragFinished(IInputModeContext, PointD, PointD) methods. Items can be dragged with the mouse and an instance of this class will modify their position accordingly. Typically client code will use the Location's coordinates to determine the current position of the elements. A drag will trigger the invocation of InitializeDrag(IInputModeContext), zero or more HandleMove(IInputModeContext, PointD, PointD) calls, and finalized by either DragFinished(IInputModeContext, PointD, PointD) or CancelDrag(IInputModeContext, PointD).

Related Demo Applications

The following programming samples are available: Also see the yFiles for Silverlight tutorials for step by step introductions.

See Also