Share via


ToolAction Enumeration

Represents a user gesture.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Enumeration ToolAction
public enum ToolAction
public enum class ToolAction
type ToolAction
public enum ToolAction

Members

Member name Description
None No action.
Down A mouse button has been pressed.
Up A mouse button has been released.
Move The mouse has been moved.
Wheel The mouse wheel has been moved.
Click A mouse button has been clicked.
DoubleClick A mouse button has been double-clicked. Double-click and single-click interact as follows: Click, Click, DoubleClick.
Enter The mouse has entered an element. If the mouse enters an adorner, an Enter event is only raised if the target of the adorner is different from the last target.
Leave The mouse has left an element. If the mouse leaves an adorner, a Leave event is only raised if the new target is different from the adorner’s target.
Hover The mouse has stopped for a short time over an element or adorner. A new hover event is raised when the mouse passes over a different element.
DragIntent The user has held a mouse button down and moved the mouse beyond a certain threshold. This indicates the user’s intent to begin a drag operation.
DragEnter A DragEnter event that occurs because of a prior call to DragDrop.DoDragDrop. The source and target objects always refer to the elements, not the adorners.
DragOver A DragOver event that occurs because of a prior call to DragDrop.DoDragDrop. The source and target objects always refer to the elements, not the adorners.
DragLeave A DragLeave event that occurs because of a prior call to DragDrop.DoDragDrop. The source and target objects always refer to the elements, not the adorners.
DragDrop A DragDrop event that occurs because of a prior call to DragDrop.DoDragDrop. The source and target objects always refer to the elements, not the adorners.
DragFeedback A DragFeedback event that occurs because of a prior call to DragDrop.DoDragDrop. The source and target objects always refer to the elements, not the adorners.
DragComplete The user held a mouse button down and moved the mouse. This causes a DragIntent to be signaled. Next, the user has released that mouse button, signaling the drag has completed.
DragOutside The user has dragged an item off the edge of the design surface. You may bind a command to this gesture to invoke a drag-and-drop operation.

Remarks

Tool actions are used instead of Windows Presentation Foundation's mouse actions, because they have higher fidelity.

See Also

Reference

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility