Show / Hide Table of Contents

Class MouseBinding

Implements binding between mouse gesture and command

Inheritance
System.Object
DependencyObject
Freezable
InputBinding
MouseBinding
Implements
ICommandSource
Inherited Members
InputBinding.CommandProperty
InputBinding.Command
InputBinding.CommandParameterProperty
InputBinding.CommandParameter
InputBinding.IsRepeatEnabledProperty
InputBinding.IsRepeatEnabled
Freezable.IsFrozen
Freezable.Parent
Freezable.Changed
Freezable.Freeze()
Freezable.OnPropertyChanged(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class MouseBinding : InputBinding, ICommandSource

Constructors

MouseBinding()

Initializes a new instance of the MouseBinding class.

Declaration
public MouseBinding()

MouseBinding(ICommand, MouseAction, ModifierKeys)

Initializes a new instance of the MouseBinding class.

Declaration
public MouseBinding(ICommand command, MouseAction action, ModifierKeys modifiers)
Parameters
Type Name Description
ICommand command

The command.

MouseAction action

The action.

ModifierKeys modifiers

The modifiers.

MouseBinding(ICommand, MouseGesture)

Initializes a new instance of the MouseBinding class.

Declaration
public MouseBinding(ICommand command, MouseGesture gesture)
Parameters
Type Name Description
ICommand command

The command.

MouseGesture gesture

The gesture.

Fields

ModifiersProperty

The modifiers property

Declaration
public static readonly DependencyProperty ModifiersProperty
Field Value
Type Description
DependencyProperty

MouseActionProperty

The mouse action property

Declaration
public static readonly DependencyProperty MouseActionProperty
Field Value
Type Description
DependencyProperty

Properties

Gesture

Gets or sets the gesture.

Declaration
public override InputGesture Gesture { get; set; }
Property Value
Type Description
InputGesture

The gesture.

Overrides
InputBinding.Gesture
Exceptions
Type Condition
System.ArgumentException

Wrong Input Gesture type. Expected MouseGesture.

Modifiers

Gets or sets the modifiers.

Declaration
public ModifierKeys Modifiers { get; set; }
Property Value
Type Description
ModifierKeys

The modifiers.

MouseAction

Gets or sets the mouse action.

Declaration
public MouseAction MouseAction { get; set; }
Property Value
Type Description
MouseAction

The mouse action.

Implements

ICommandSource
Back to top Generated by DocFX