MouseBinding.MouseAction Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the MouseAction associated with this MouseBinding.
public:
property System::Windows::Input::MouseAction MouseAction { System::Windows::Input::MouseAction get(); void set(System::Windows::Input::MouseAction value); };
public System.Windows.Input.MouseAction MouseAction { get; set; }
member this.MouseAction : System.Windows.Input.MouseAction with get, set
Public Property MouseAction As MouseAction
Property Value
The mouse action. The default is None.
Examples
The following example shows how to create a binding between a MouseAction and a RoutedCommand.
<MouseBinding MouseAction="MiddleClick"
Command="ApplicationCommands.Cut" />
Remarks
Unlike a KeyGesture, a MouseGesture does not need to be associated with a modifier key. So a MouseAction by itself, such as MiddleClick, can be a valid MouseGesture.
Applies to
See also
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.