Specifies constants that define actions performed by the mouse.
public enum MouseAction
< object property = " enumerationMemberName " ... />
Member name Description LeftClick A left mouse button click. LeftDoubleClick A left mouse button double-click. MiddleClick A middle mouse button click. MiddleDoubleClick A middle mouse button double-click. None No action. RightClick A right mouse button click. RightDoubleClick A right mouse button double-click. WheelClick A mouse wheel rotation.
enumeration specifies constants which correspond to actions performed by the mouse, such as MouseAction and RightClick . RightDoubleClick can be used with a MouseAction to create a input gesture which can be bound to a command using a MouseGesture . For more information about commanding, see the MouseBinding . Commanding Overview
The following example shows how to construct a
using a MouseGesture and how to bind the gesture to a MouseAction using a RoutedCommand . MouseBinding
< MouseBinding MouseAction = " MiddleClick "
Command = " ApplicationCommands.Cut " />
MouseGesture CutCmdMouseGesture = new MouseGesture(
MouseBinding CutMouseBinding = new MouseBinding(
// RootWindow is an instance of Window.
Supported in: 4.5.1, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback