語言

ContentElement.OnIsKeyboardFocusWithinChanged 方法

定義

此元素在事件啟動前 IsKeyboardFocusWithinChanged 召喚。 實作這個方法可為此事件加入類別處理。

protected:
 virtual void OnIsKeyboardFocusWithinChanged(System::Windows::DependencyPropertyChangedEventArgs e);
protected virtual void OnIsKeyboardFocusWithinChanged(System.Windows.DependencyPropertyChangedEventArgs e);
abstract member OnIsKeyboardFocusWithinChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
override this.OnIsKeyboardFocusWithinChanged : System.Windows.DependencyPropertyChangedEventArgs -> unit
Protected Overridable Sub OnIsKeyboardFocusWithinChanged (e As DependencyPropertyChangedEventArgs)

參數

備註

當依賴屬性的值 IsKeyboardFocusWithin 改變時,這個虛擬方法會被提升。 虛擬方法會先被提出,並可視需要操作事件資料。 接著 IsKeyboardFocusWithinChanged 事件會用同一個事件資料實例來觸發。 請注意,該 IsKeyboardFocusWithinChanged 事件並非路由事件。 因此,你無法在類別處理器中標記它為已處理。

此方法沒有預設實作。 因為繼承中的中間類別可能會實作此方法,我們建議您在實作中呼叫基礎實作。 你可以根據需求,在特別處理前後致電基地。

適用於