UIElement3D.OnIsKeyboardFocusedChanged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當這個項目上引發未處理的 IsKeyboardFocusedChanged 事件時叫用。 實作這個方法可為此事件加入類別處理。
protected:
virtual void OnIsKeyboardFocusedChanged(System::Windows::DependencyPropertyChangedEventArgs e);
protected virtual void OnIsKeyboardFocusedChanged (System.Windows.DependencyPropertyChangedEventArgs e);
abstract member OnIsKeyboardFocusedChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
override this.OnIsKeyboardFocusedChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
Protected Overridable Sub OnIsKeyboardFocusedChanged (e As DependencyPropertyChangedEventArgs)
參數
備註
當相依性屬性的值變更時, IsKeyboardFocused 會呼叫這個虛擬方法。 虛擬方法會先呼叫,並視需要操作事件資料。 然後,事件 IsKeyboardFocusedChanged 會以相同的事件資料實例引發。 請注意, IsKeyboardFocusedChanged 事件不是路由事件。 因此,您無法將它標示為在類別處理常式中處理。
這個方法沒有預設實作。 由於繼承中的中繼類別可能會實作這個方法,因此建議您在實作中呼叫基底實作。 視您的需求而定,您可以在特殊處理之前或之後呼叫基底。
OnIsKeyboardFocusedChanged.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應