Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContentElement.InputBindings Property

 

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

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public InputBindingCollection InputBindings { get; }

Property Value

Type: System.Windows.Input.InputBindingCollection

The collection of input bindings.

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.

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

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft