Interface ICommandMouseGestureService
Represents a mouse gesture service for commands.
public interface ICommandMouseGestureService
Methods
BindMouseGestures(FrameworkElement, ILayoutItem)
Binds a the mouse gestures to ui element and layout item.
void BindMouseGestures(FrameworkElement element, ILayoutItem layoutItem)
Parameters
element
FrameworkElementThe associated element.
layoutItem
ILayoutItemThe associated layout item. This is null for global commands.
GetPrimaryMouseGesture(CommandDefinitionBase)
Gets the mouse gesture for a command definition.
MouseGesture GetPrimaryMouseGesture(CommandDefinitionBase commandDefinition)
Parameters
commandDefinition
CommandDefinitionBaseThe command definition.
Returns
- MouseGesture
The associated mouse gesture.