INestedNavigation

References
public interface INestedNavigation
Implement this interface on your IAttributes class to participate in standard canvas object navigation.

Properties

MotionBoundary

#
RectangleF MotionBoundary { get; }
Gets the boundary within which navigation is enabled. When in doubt, return the IAttributes.Bounds of the object.

MotionTypes

#
MotionType MotionTypes { get; }
Gets the supported motions on this navigation element.

Methods

BeginPan

#
bool BeginPan(PointF from, out object state)
Begin a panning operation.
from (PointF)Start location of pan.
state (out object)State object which will be shared back during calls to ContinuePan(PointF, float, float, object).
True if panning is supposed to actually start.

BeginZoom

#
bool BeginZoom(PointF from, out object state)
Begin a zooming operation.
from (PointF)Anchor location of zoom.
state (out object)State object which will be shared back during calls to ContinueZoom(PointF, float, object).
True if zooming is supposed to actually start.

ContinuePan

#
bool ContinuePan(PointF from, float dx, float dy, object state)
Continuation of a panning operation.
from (PointF)Start location of pan.
dx (float)Horizontal panning amount from origin point.
dy (float)Vertical panning amount from origin point.
state (object)Shared state.
True on pan, false on no change.

ContinueZoom

#
bool ContinueZoom(PointF from, float factor, object state)
Continuation of a zooming operation using a precomputed factor.
from (PointF)Anchor location of zoom.
factor (float)Zoom scale factor.
state (object)Shared state.
True on zoom, false on no change.