Search
BehaviorBase Members
Constructors Properties Methods
 


An abstract base class for types that define how the control reacts to users' actions with a mouse or other pointing devices.

The following tables list the members exposed by the BehaviorBase type.

 Public Constructors

  Name Description

BehaviorBase

Initializes a new instance of the BehaviorBase class.

 Protected Properties

  Name Description

Diagram

The Diagram object that is being modified. (Inherited from Interaction.)

InteractionState

Gets or sets an InteractionState instance that tracks the modification currently being done on an item.

MouseDownPoint

Gets or sets the position of the mouse when its button has been pressed.

 Public Methods

  Name Description

SetMouseCursor

Invoked while the mouse is moved to let Behavior objects set the mouse cursor depending on the context.

StartDraw

Invoked when a user presses the left mouse button inside the diagram drawing area.

 Protected Methods

  Name Description

CreateLink

Creates a link of the type appropriate for the current behavior.

IsKeyDown

Indicates whether the provided key is currently pressed down.

IsTouch

Indicates whether the source of the interaction is from touch input device.

OnMouseDown

Interaction.OnMouseDown override.

OnMouseMove

Interaction.OnMouseMove override.

OnMouseUp

Interaction.OnMouseUp override.

SetModfCursor

Updates the current cursor according to the specified cursor position and diagram state.

StartInteraction

Invoked by the control when the user presses the left mouse button.

 See Also