New to Telerik UI for WPFStart a free 30-day trial

Represents KeyBindings collection.

Definition

Namespace:Telerik.Windows.Documents.Commands

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
public class KeyBindingCollection

Inheritance: objectKeyBindingCollection

Methods

Adds the specified input binding.

C#
public void Add(InputBinding inputBinding)
Parameters:inputBindingInputBinding

The input binding.

Adds the range.

C#
public void AddRange(IEnumerable<InputBinding> inputBindings)
Parameters:inputBindingsIEnumerable<InputBinding>

The input bindings.

Clears the bindings.

C#
public void Clear()

Registers the command descriptor.

C#
public void RegisterCommandDescriptor(CommandDescriptorBase commandDescriptor, Key key, ModifierKeys modifierKeys = 0)
Parameters:commandDescriptorCommandDescriptorBase

The command descriptor.

keyKey

The key.

modifierKeysModifierKeys

The modifier keys.

Sets the input bindings.

C#
public void SetInputBindings(InputBindingCollection inputBindings)
Parameters:inputBindingsInputBindingCollection

The input bindings.