Table of Contents

Class DraggingContainerState

Namespace: RichCanvas.States.ContainerStates
Assembly: RichCanvas.dll

Defines a new state used when dragging action happens on RichCanvas.RichCanvasContainer.

public class DraggingContainerState : ContainerState

Inheritance

objectContainerStateDraggingContainerState

Inherited Members

ContainerState.Container, ContainerState.Enter(), ContainerState.ReEnter(), ContainerState.Exit(), ContainerState.HandleMouseDown(MouseButtonEventArgs), ContainerState.HandleMouseMove(MouseEventArgs), ContainerState.HandleMouseUp(MouseButtonEventArgs), ContainerState.PushState(ContainerState), ContainerState.PopState(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

DraggingContainerState(RichCanvasContainer)

Initializes a new RichCanvas.States.ContainerStates.DraggingContainerState.

public DraggingContainerState(RichCanvasContainer container)

Parameters

container RichCanvasContainer

Owner of the state.

Methods

Enter()

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

public override void Enter()

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.