ContentElement.InputBindings Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the collection of input bindings that are associated with this element.

C#
public System.Windows.Input.InputBindingCollection InputBindings { get; }

Property Value

The collection of input bindings.

Remarks

Input bindings support the binding of commands to input devices. For example, MouseBinding implements input bindings that include properties that are specific to mouse devices.

The collection of input bindings includes both input bindings that pertain to the type and also input bindings that are declared on the instance.

A related property, CommandBindings, maintains a collection of command bindings. These bindings differ from input bindings in that they represent the next level down of command processing - actions that are tied to known commands and class-specific handlers for them.

XAML Property Element Usage

<object>
  <object.InputBindings>
    oneOrMoreInputBindings  </object.InputBindings>
</object>

XAML Values

oneOrMoreInputBindings One or more InputBinding elements (typically the KeyBinding or MouseBinding derived classes). Each of these is expected to have a Command and Gesture attribute set.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10