Manages interactive snapping of ILabels to their owner during drag operations like movements.

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

Syntax

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

Remarks

This class provides a set of properties to customize the snapping behavior. IPositionHandler implementations and similar classes can use the following idiom to get an instance of this class:
CopyC#
var snapContext = inputModeContext.Get<SnapContext>() as LabelSnapContext;
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..::..LabelSnapContext

See Also