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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft