IKeyboardInputSite 介面
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在容器內管理鍵盤焦點。 這個介面實作 WPF-Win32 交互操作案例中的鍵盤訊息管理。
public interface class IKeyboardInputSite
C#
public interface IKeyboardInputSite
type IKeyboardInputSite = interface
Public Interface IKeyboardInputSite
容器應該為每個包含的元件提供這個介面的唯一實例。
介面 IKeyboardInputSite 和 IKeyboardInputSink 會一起使用,以支援跨互通界限的鍵盤動作。 月臺 (實作) IKeyboardInputSite 代表接收 (IKeyboardInputSink) 的父代。 接收 () IKeyboardInputSink 會實作大部分的鍵盤行為。 每個月臺也必須提供接收,因為介面的 IKeyboardInputSite 屬性會傳回月臺特定接收。
如需專為Windows Forms交互操作實作的輸入架構討論,請參閱Windows Forms和 WPF 互通性輸入架構。
如需WPF-Win32交互操作案例的詳細資訊,請參閱 WPF 和 Win32 互通。
Sink |
取得與這個站台相關聯的鍵盤接收。 |
On |
由所包含的元件在到達其最後一個定位停駐點 (Tab Stop),且沒有要定位到的其他項目時呼叫。 |
Unregister() |
從此站台移除註冊子鍵盤輸入接收。 |
產品 | 版本 |
---|---|
.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 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |