取得或設定已對應至輸入事件的輸入繫結。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Property Binding As InputBinding
Get
Set
public InputBinding Binding { get; set; }
public:
property InputBinding^ Binding {
InputBinding^ get ();
void set (InputBinding^ value);
}
member Binding : InputBinding with get, set
function get Binding () : InputBinding
function set Binding (value : InputBinding)
屬性值
型別:System.Windows.Input.InputBinding
已對應至輸入事件的輸入繫結。
備註
傳回這個事件後會立刻執行繫結。 您可以設定新的繫結來重新傳遞至不同命令,也可以將這個繫結設定為 nullNull 參照 (即 Visual Basic 中的 Nothing) 而不要執行命令。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間