Table of Contents

Class SingleSelectionState

Namespace: RichCanvas.States
Assembly: RichCanvas.dll

Defines a new state used when single selection action happens on RichCanvas.RichCanvas.

public class SingleSelectionState : CanvasState

Inheritance

objectCanvasStateSingleSelectionState

Inherited Members

CanvasState.Parent, CanvasState.Enter(), CanvasState.ReEnter(), CanvasState.Exit(), CanvasState.HandleMouseDown(MouseButtonEventArgs), CanvasState.HandleMouseMove(MouseEventArgs), CanvasState.HandleMouseUp(MouseButtonEventArgs), CanvasState.HandleKeyDown(KeyEventArgs), CanvasState.HandleKeyUp(KeyEventArgs), CanvasState.HandleAutoPanning(MouseEventArgs), CanvasState.PushState(CanvasState), CanvasState.PopState(), CanvasState.MatchesPreviewMouseDownState(MouseButtonEventArgs, out CanvasState?), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SingleSelectionState(RichCanvas)

Initializes a new RichCanvas.States.SingleSelectionState.

public SingleSelectionState(RichCanvas parent)

Parameters

parent RichCanvas

Owner of the state.

Methods

Enter()

Called whenever RichCanvas.RichCanvas.PushState(RichCanvas.States.CanvasState) is called (becomes the RichCanvas.RichCanvas.CurrentState).
Note: Used to initialize the State before any input is processed by it.

public override void Enter()

HandleAutoPanning(MouseEventArgs)

Handles auto panning when mouse is outside the canvas.

public override void HandleAutoPanning(MouseEventArgs e)

Parameters

e MouseEventArgs

HandleKeyDown(KeyEventArgs)

Invoked when the System.Windows.UIElement.KeyDown event is received.

public override void HandleKeyDown(KeyEventArgs e)

Parameters

e KeyEventArgs

Information about the event.

HandleMouseDown(MouseButtonEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

public override void HandleMouseDown(MouseButtonEventArgs e)

Parameters

e MouseButtonEventArgs

The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.

HandleMouseMove(MouseEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

public override void HandleMouseMove(MouseEventArgs e)

Parameters

e MouseEventArgs

The System.Windows.Input.MouseEventArgs that contains the event data.

HandleMouseUp(MouseButtonEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

public override void HandleMouseUp(MouseButtonEventArgs e)

Parameters

e MouseButtonEventArgs

The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the mouse button was released.

ReEnter()

Called whenever RichCanvas.RichCanvas.PopState is called.
Note: Used whenever a state switch happens in order to update the state which was suspended.

public override void ReEnter()