Class ReconnectingState
State for reconnecting an existing edge by dragging its endpoint. Similar to React Flow's reconnectable edges - the edge visual updates in real-time.
public class ReconnectingState : InputStateBase, IInputState
- Inheritance
-
ReconnectingState
- Implements
- Inherited Members
Constructors
ReconnectingState(Edge, bool, Node, Port, Node, Port, Point, ThemeResources)
Creates a new reconnecting state.
public ReconnectingState(Edge edge, bool draggingTarget, Node fixedNode, Port fixedPort, Node movingNode, Port movingPort, Point startPosition, ThemeResources theme)
Parameters
edgeEdgeThe edge being reconnected.
draggingTargetboolTrue if dragging the target (input) end, false if dragging the source (output) end.
fixedNodeNodeThe node whose connection stays fixed.
fixedPortPortThe port that stays connected.
movingNodeNodeThe node we're disconnecting from.
movingPortPortThe port we're disconnecting from.
startPositionPointInitial screen position of the cursor.
themeThemeResourcesTheme resources for styling.
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 reconnection 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