Concrete SnapContext implementation which handles snapping movement for IGraph items.

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

Syntax

C#
public class GraphSnapContext : SnapContext
Visual Basic
Public Class GraphSnapContext _ Inherits SnapContext

Remarks

This class provides a set of properties that determine the way snapping operations are being performed in the context of IGraphs. IPositionHandler implementations and the like can use the following idiom to retrieve instances of this class:
CopyC#
var snapContext = inputModeContext.Get<SnapContext>() as GraphSnapContext;
if (snapContext != null && snapContext.IsInitializing) {
 ...

Related Demo Applications

See the yFiles for Silverlight tutorials for step by step introductions.

Especially see the following tutorial steps:

Inheritance Hierarchy

System..::..Object
  yWorks.Canvas.Input..::..SnapContext
    yWorks.yFiles.UI.Input..::..GraphSnapContext

See Also