Share via


ToolGesture.MiddleButton Property

Gets or sets whether if this gesture is allowed to be performed while the middle mouse button is pressed.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Property MiddleButton As MouseButtonState
    Get
    Set
public MouseButtonState MiddleButton { get; set; }
public:
property MouseButtonState MiddleButton {
    MouseButtonState get ();
    void set (MouseButtonState value);
}
member MiddleButton : MouseButtonState with get, set
function get MiddleButton () : MouseButtonState
function set MiddleButton (value : MouseButtonState)

Property Value

Type: System.Windows.Input.MouseButtonState
Returns Pressed if this gesture is allowed to be performed while the middle mouse button is pressed. The default returns Pressed.

.NET Framework Security

See Also

Reference

ToolGesture Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility