Gets or sets the InputGesture associated with this input binding.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<inputBindingDerivedClass> <inputBindingDerivedClass.Gesture> <inputGestureImplementation/> </inputBindingDerivedClass.Gesture> </inputBindingDerivedClass>
<KeyBinding Gesture="KeyGesture"/>- or -<MouseBinding Gesture="MouseGesture"/>- or -<inputBindingDerivedClass Gesture="InputGesture"/>
Property ValueType: System.Windows.Input.InputGesture
The associated gesture. The default is Nothing.
The input gesture is the action that invokes the command. Examples of input gestures in WPF are KeyGesture and MouseGesture. A KeyGesture is a combination of a Key and a set of ModifierKeys. A MouseGesture is a combination of a MouseAction and a set of ModifierKeys.
The InputBinding class itself does not support XAML usage, because it does not expose a public default constructor (there is a default constructor, but it is protected). However, derived classes can expose a public constructor and thus can set properties that are inherited from InputBinding with a XAML usage. Two existing InputBinding derived classes that can be instantiated in XAML and can set properties in XAML are KeyBinding and MouseBinding.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.