Table of Contents

Class CommandMouseGestureService

Namespace
Gemini.Framework.Commands
Assembly
Gemini.dll

Represents a mouse gesture service for command.

[Export(typeof(ICommandMouseGestureService))]
public class CommandMouseGestureService : ICommandMouseGestureService
Inheritance
CommandMouseGestureService
Implements
Inherited Members

Constructors

CommandMouseGestureService(CommandMouseShortcut[], ExcludeCommandMouseShortcut[], ICommandService)

Initializes a new instance of the CommandMouseGestureService class.

[ImportingConstructor]
public CommandMouseGestureService(CommandMouseShortcut[] mouseShortcuts, ExcludeCommandMouseShortcut[] excludeMouseShortcuts, ICommandService commandService)

Parameters

mouseShortcuts CommandMouseShortcut[]

Imported mouse shortcuts.

excludeMouseShortcuts ExcludeCommandMouseShortcut[]

Excluded imported mouse shortcuts.

commandService ICommandService

Imported command service.

Methods

BindMouseGestures(FrameworkElement, ILayoutItem)

Binds the mouse gestures to ui element and layout item.

public void BindMouseGestures(FrameworkElement element, ILayoutItem layoutItem)

Parameters

element FrameworkElement

The associated uiElement.

layoutItem ILayoutItem

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

GetPrimaryMouseGesture(CommandDefinitionBase)

Gets the mouse gesture for a command definition.

public MouseGesture GetPrimaryMouseGesture(CommandDefinitionBase commandDefinition)

Parameters

commandDefinition CommandDefinitionBase

The command definition.

Returns

MouseGesture

The associated mouse gesture.