InputBinding Constructor ()


Provides base initialization for classes derived from InputBinding.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

protected InputBinding()

InputBinding is not technically an abstract class, but the default constructor is deliberately protected access. This has the effect of making InputBinding an "abstract" class for XAML. There are existing properties in WPF that have XAML usages that expect objects of type InputBinding, but you cannot specify an InputBinding instance in XAML. Instead, you can specify one of the device-specific InputBinding derived classes as values, for instance KeyBinding or MouseBinding.

Notes to Inheritors:

If you implement a custom InputBinding that supports a XAML usage, use this constructor for base initialization.

.NET Framework
Available since 3.0
Return to top