The SnapContext instance that handles interactive snapping of elements during drag operations like movements.

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


[DefaultValueAttribute(null)] public SnapContext SnapContext { get; set; }
Visual Basic
<DefaultValueAttribute(Nothing)> _ Public Property SnapContext As SnapContext Get Set


Setting this property to VoidInstance will disable snapping, whereas setting it to nullNothingnullptra null reference (Nothing in Visual Basic) will make the child modes use the context from their IInputModeContexts, if available. Upon change the OnSnapContextChanged(SnapContext, SnapContext) method is called, which will as a side effect configure the snap context to display the SnapResults in the CanvasControl. Default is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also