MouseBinding.MouseAction 属性

定义

获取或设置与此 MouseBinding 关联的 MouseAction

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

属性值

鼠标操作。 默认值为 None

示例

以下示例演示如何在 和 RoutedCommand之间MouseAction创建绑定。

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

注解

与 不同,KeyGestureMouseGesture不需要将 与修饰键相关联。 因此, MouseAction 本身(如 MiddleClick)可以是有效的 MouseGesture

适用于

另请参阅