UIElement.OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) UIElement.OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) UIElement.OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) UIElement.OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) Method

定義

當這個項目上引發未處理的 IsKeyboardFocusedChanged 事件時叫用。Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

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相依性屬性變更。This virtual method is raised when the value of the IsKeyboardFocused dependency property changes. 虛擬方法會先引發,並可以操作為必要的事件資料。The virtual method is raised first and can manipulate the event data as necessary. IsKeyboardFocusedChanged與該相同的事件資料執行個體就會引發事件。Then the IsKeyboardFocusedChanged event is raised with that same event data instance. 請注意,IsKeyboardFocusedChanged事件就不會路由的事件。Notice that the IsKeyboardFocusedChanged event is not a routed event. 因此,您無法將它標示為已處理的類別處理常式中。Therefore, you cannot mark it as handled in the class handler.

這個方法沒有任何預設實作。This method has no default implementation. 因為中繼類別繼承中的可能會實作這個方法,我們建議您在實作中呼叫基底實作。Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation. 您可能會呼叫基底之前或之後您的特殊處理,根據您的需求。You may call base either before or after your special handling, depending on your requirements.

適用於