ToolGesture.XButton2 属性

获取或设置当鼠标的 xbutton2 按钮按下时此笔势是否允许执行。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Property XButton2 As MouseButtonState
    Get
    Set
public MouseButtonState XButton2 { get; set; }
public:
property MouseButtonState XButton2 {
    MouseButtonState get ();
    void set (MouseButtonState value);
}
member XButton2 : MouseButtonState with get, set
function get XButton2 () : MouseButtonState
function set XButton2 (value : MouseButtonState)

属性值

类型:System.Windows.Input.MouseButtonState
如果按下 xbutton2 鼠标按钮时,允许执行此手势,则返回 Pressed。默认返回 Pressed

.NET Framework 安全性

请参见

参考

ToolGesture 类

Microsoft.Windows.Design.Interaction 命名空间

其他资源

了解 WPF 设计器扩展性