A complex IInputMode that can be used in a CanvasControl or GraphControl to edit an IGraph instance.

Namespace: yWorks.yFiles.UI.Input
Assembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)

Syntax

C#
[ObfuscationAttribute(StripAfterObfuscation = false, Exclude = true, 
	ApplyToMembers = false)]
public class GraphEditorInputMode : MainInputMode
Visual Basic
<ObfuscationAttribute(StripAfterObfuscation := False, Exclude := True,  _
	ApplyToMembers := False)> _
Public Class GraphEditorInputMode _
	Inherits MainInputMode

Remarks

This class delegates most of the work to minor IInputMode implementations. However it contains a number of properties that influence the general behavior, too. Also this instance can be instructed to automatically adjust the content rectangle of the CanvasControl whenever the graph is changed using gestures.
This class contains a number of public methods that can be used to programmatically perform the corresponding actions, too.
Setting the NodeCreator to another instance or nullNothingnullptra null reference (Nothing in Visual Basic) changes the way nodes are created. Also the various minor IInputMode instances can be disabled, to change the behavior, too.

Related Reading in the Developer's Guide

An overview of this input mode is given in the section User Interaction. Additionally, specific support for graph hierarchies is discussed in Chapter 3, Graph Hierarchies.

Related Demo Applications

The following programming samples are available: Also see the yFiles WPF tutorials for step by step introductions.

Especially see the following tutorial steps:

Inheritance Hierarchy

System..::..Object
  yWorks.Canvas.Input..::..AbstractInputMode
    yWorks.Canvas.Input..::..AbstractConcurrentInputMode
      yWorks.Canvas.Input..::..MultiplexingInputMode
        yWorks.Canvas.Input..::..MainInputMode
          yWorks.yFiles.UI.Input..::..GraphEditorInputMode

See Also