MouseBinding.MouseAction MouseBinding.MouseAction MouseBinding.MouseAction MouseBinding.MouseAction Property

定義

この MouseAction に関連付けられた MouseBinding を取得または設定します。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

プロパティ値

マウス操作。The mouse action. 既定値は、None です。The default is None.

次の例では、バインドを作成する方法を示しています、MouseActionRoutedCommandします。The following example shows how to create a binding between a MouseAction and a RoutedCommand.

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

注釈

異なり、 KeyGestureMouseGestureする修飾子キーと関連付ける必要はありません。Unlike a KeyGesture, a MouseGesture does not need to be associated with a modifier key. したがって、MouseAction単独でなどMiddleClick、できるは、有効なMouseGestureSo a MouseAction by itself, such as MiddleClick, can be a valid MouseGesture.

適用対象

こちらもご覧ください