MouseBinding.MouseAction Egenskap

Definition

Hämtar eller anger associerad MouseAction med den här 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

Egenskapsvärde

Musåtgärden. Standardvärdet är None.

Exempel

I följande exempel visas hur du skapar en bindning mellan en MouseAction och en RoutedCommand.

<MouseBinding MouseAction="MiddleClick"
              Command="ApplicationCommands.Cut" />

Kommentarer

Till skillnad från en KeyGesturebehöver en MouseGesture inte associeras med en modifierarnyckel. Så en MouseAction av sig själv, till exempel MiddleClick, kan vara en giltig MouseGesture.

Gäller för

Se även