Class
InputBinding

Represents a binding between an InputGesture and a command. The command is potentially a RoutedCommand.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

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

Inheritance: objectInputBinding

Derived Classes: KeyBindingMouseBinding

Implements: ICommandSource

Constructors

InputBinding()

Initializes a new instance of the InputBinding class.

Declaration

cs-api-definition
protected InputBinding()

InputBinding(ICommand, InputGesture)

Initializes a new instance of the InputBinding class.

Declaration

cs-api-definition
public InputBinding(ICommand command, InputGesture inputGesture)

Parameters

command

ICommand

The command.

inputGesture

InputGesture

The input gesture.

Properties

Command

Gets the command that will be executed when the command source is invoked.

Declaration

cs-api-definition
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Property Value

ICommand

Implements ICommandSource.Command

CommandParameter

Represents a user defined data value that can be passed to the command when it is executed.

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

Implements ICommandSource.CommandParameter

CommandTarget

The object that the command is being executed on.

Declaration

cs-api-definition
public UIElement CommandTarget { get; set; }

Property Value

UIElement

Implements ICommandSource.CommandTarget

Gesture

Gets or sets the InputGesture associated with this input binding.

Declaration

cs-api-definition
public virtual InputGesture Gesture { get; set; }

Property Value

InputGesture

The gesture.