Table of Contents

Class CommandKeyGestureService

Namespace
Gemini.Framework.Commands
Assembly
Gemini.dll
[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 FrameworkElement

The associated element.

layoutItem ILayoutItem

The associated layout item. This is null for global commands.

GetPrimaryKeyGesture(CommandDefinitionBase)

public KeyGesture GetPrimaryKeyGesture(CommandDefinitionBase commandDefinition)

Parameters

commandDefinition CommandDefinitionBase

Returns

KeyGesture