Helper class used by CanvasControl to limit the interactive movement of the viewport.

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

Syntax

C#
public class ViewportLimiter
Visual Basic
Public Class ViewportLimiter

Remarks

The ViewportLimiter instance should be consulted whenever the user tries to change the viewport. Using method LimitViewport(CanvasControl, RectD) the desired viewport can be validated by the implementation. Note that setting the Zoom property or ViewPoint property will not be influenced by implementations of this class. It is up to the caller to perform verification.

Inheritance Hierarchy

System..::..Object
  yWorks.Canvas..::..ViewportLimiter

See Also