Class
MouseBinding

Binds a MouseGesture to a RoutedCommand (or another ICommand implementation).

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class MouseBinding : InputBinding, ICommandSource

Inheritance: objectInputBindingMouseBinding

Implements: ICommandSource

Inherited Members InputBinding.CommandInputBinding.CommandParameterInputBinding.CommandTarget

Constructors

MouseBinding()

Initializes a new instance of the MouseBinding class.

Declaration

cs-api-definition
public MouseBinding()

MouseBinding(ICommand, MouseGesture)

Initializes a new instance of the MouseBinding class.

Declaration

cs-api-definition
public MouseBinding(ICommand command, MouseGesture gesture)

Parameters

command

ICommand

The command.

gesture

MouseGesture

The gesture.

Properties

Gesture

Gets or sets the InputGesture associated with this input binding.

Declaration

cs-api-definition
[TypeConverter(typeof(MouseGestureConverter))]
public override InputGesture Gesture { get; set; }

Property Value

InputGesture

The gesture.

Overrides InputBinding.Gesture

MouseAction

Gets or sets the MouseAction associated with this MouseBinding.

Declaration

cs-api-definition
public MouseAction MouseAction { get; set; }

Property Value

MouseAction

The mouse action.