Registers the command and the key binding of a WPF control into the specify source (a parent window, the whole application, or a hotkey in the Windows desktop environement).

C# | Visual Basic | Visual C++ |
void RegisterCommandAndKeyBinding( UIElement control, KeyBindingSource source )
Sub RegisterCommandAndKeyBinding ( _ control As UIElement, _ source As KeyBindingSource _ )
void RegisterCommandAndKeyBinding( UIElement^ control, KeyBindingSource source )

- control (UIElement)
- The control.
- source (KeyBindingSource)
- The source of the key binding.