共用方式為


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 設計工具擴充性