UIElement.InputBindings Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the collection of input bindings associated with this element.
public:
property System::Windows::Input::InputBindingCollection ^ InputBindings { System::Windows::Input::InputBindingCollection ^ get(); };
public System.Windows.Input.InputBindingCollection InputBindings { get; }
member this.InputBindings : System.Windows.Input.InputBindingCollection
Public ReadOnly Property InputBindings As InputBindingCollection
The collection of input bindings.
The following example populates this property on a Window, with a single KeyBinding.
<Window.InputBindings>
<KeyBinding Key="B"
Modifiers="Control"
Command="ApplicationCommands.Open" />
</Window.InputBindings>
For more information about the XAML syntax for collections, see XAML Syntax In Detail.
Input bindings support the binding of commands to input devices. For example, MouseBinding implements input bindings that include properties that are particular to mouse devices.
The collection of input bindings will include both input bindings that pertain to the type as well as input bindings that are declared on the instance.
A related property, CommandBindings, maintains a collection of command bindings. These differ from input bindings in that they represent the next level down of command processing - actions that are tied to known commands.
<object>
<object.InputBindings>
oneOrMoreInputBindings
</object.InputBindings>
</object>
oneOrMoreInputBindings One or more InputBinding elements (typically the KeyBinding or MouseBinding derived classes). Each of these is expected to have a Command and Gesture attribute set.
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.