Table of Contents

Class PanningState

Namespace: RichCanvas.States
Assembly: RichCanvas.dll

Defines a new state used when panning action happens on RichCanvas.RichCanvas.

public class PanningState : CanvasState

Inheritance

objectCanvasStatePanningState

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

PanningState(RichCanvas)

Initializes a new RichCanvas.States.PanningState.

public PanningState(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()

Exit()

Called whenever RichCanvas.RichCanvas.PopState is called.

public override void Exit()

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.