ContentElement.InputBindings ContentElement.InputBindings ContentElement.InputBindings ContentElement.InputBindings Property

定義

取得與這個項目關聯的輸入繫結集合。Gets the collection of input bindings that are 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.

備註

輸入繫結支援命令與輸入裝置繫的結。Input bindings support the binding of commands to input devices. 比方說,MouseBinding實作輸入繫結包含滑鼠裝置特有的屬性。For example, MouseBinding implements input bindings that include properties that are specific to mouse devices.

輸入繫結的集合包含屬於此類型的輸入繫結和也會宣告執行個體的輸入繫結。The collection of input bindings includes both input bindings that pertain to the type and also input bindings that are declared on the instance.

相關的屬性, CommandBindings,維護命令繫結的集合。A related property, CommandBindings, maintains a collection of command bindings. 這些繫結與不同的輸入繫結,因為它們代表的下一個層級的命令處理,會為其繫結至已知的命令和類別的特定處理常式的動作。These bindings differ from input bindings in that they represent the next level down of command processing - actions that are tied to known commands and class-specific handlers for them.

XAML 屬性項目用法XAML Property Element Usage

<object>  
  <object.InputBindings>  
    oneOrMoreInputBindings  </object.InputBindings>  
</object>  

XAML 值XAML Values

oneOrMoreInputBindingsoneOrMoreInputBindings
一或多個InputBinding項目 (通常KeyBindingMouseBinding衍生的類別)。One or more InputBinding elements (typically the KeyBinding or MouseBinding derived classes). 每一種應該要有CommandGesture屬性設定。Each of these is expected to have a Command and Gesture attribute set.

適用於