Class CommandKeyGestureService
[Export(typeof(ICommandKeyGestureService))]
public class CommandKeyGestureService : ICommandKeyGestureService
- Inheritance
-
CommandKeyGestureService
- Implements
- Inherited Members
Constructors
CommandKeyGestureService(CommandKeyboardShortcut[], ExcludeCommandKeyboardShortcut[], ICommandService)
[ImportingConstructor]
public CommandKeyGestureService(CommandKeyboardShortcut[] keyboardShortcuts, ExcludeCommandKeyboardShortcut[] excludeKeyboardShortcuts, ICommandService commandService)
Parameters
keyboardShortcuts
CommandKeyboardShortcut[]excludeKeyboardShortcuts
ExcludeCommandKeyboardShortcut[]commandService
ICommandService
Methods
BindKeyGestures(FrameworkElement, ILayoutItem)
Binds a the key gestures to ui element and layout item.
public void BindKeyGestures(FrameworkElement element, ILayoutItem layoutItem)
Parameters
element
FrameworkElementThe associated element.
layoutItem
ILayoutItemThe associated layout item. This is null for global commands.
GetPrimaryKeyGesture(CommandDefinitionBase)
public KeyGesture GetPrimaryKeyGesture(CommandDefinitionBase commandDefinition)
Parameters
commandDefinition
CommandDefinitionBase