Class ConnectingState
State for creating a new connection by dragging from a port.
public class ConnectingState : InputStateBase, IInputState
- Inheritance
-
ConnectingState
- Implements
- Inherited Members
Constructors
ConnectingState(Node, Port, bool, Point, Control?, ThemeResources)
public ConnectingState(Node sourceNode, Port sourcePort, bool fromOutput, Point startPosition, Control? portVisual, ThemeResources theme)
Parameters
sourceNodeNodesourcePortPortfromOutputboolstartPositionPointportVisualControlthemeThemeResources
Properties
IsModal
Gets whether this state blocks other interactions.
public override bool IsModal { get; }
Property Value
Name
Gets the name of this state for debugging.
public override string Name { get; }
Property Value
Methods
CreateTempLine(Canvas)
public void CreateTempLine(Canvas canvas)
Parameters
canvasCanvas
CreateTempLine(InputStateContext)
Creates the temporary connection line, using RootPanel for direct rendering mode or MainCanvas for visual tree mode.
public void CreateTempLine(InputStateContext context)
Parameters
contextInputStateContext
Enter(InputStateContext)
Called when entering this state.
public override void Enter(InputStateContext context)
Parameters
contextInputStateContext
Exit(InputStateContext)
Called when exiting this state.
public override void Exit(InputStateContext context)
Parameters
contextInputStateContext
HandleKeyDown(InputStateContext, KeyEventArgs)
Handles key down events.
public override StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)
Parameters
contextInputStateContexteKeyEventArgs
Returns
HandlePointerMoved(InputStateContext, PointerEventArgs)
Handles pointer moved events.
public override StateTransitionResult HandlePointerMoved(InputStateContext context, PointerEventArgs e)
Parameters
contextInputStateContextePointerEventArgs
Returns
HandlePointerReleased(InputStateContext, PointerReleasedEventArgs)
Handles pointer released events.
public override StateTransitionResult HandlePointerReleased(InputStateContext context, PointerReleasedEventArgs e)
Parameters
contextInputStateContextePointerReleasedEventArgs