共用方式為


FrameworkContentElement.OnInitialized(EventArgs) 方法

定義

引發 Initialized 事件。 當 IsInitialized 將 設定為 true時,此方法會被調用。

protected:
 virtual void OnInitialized(EventArgs ^ e);
protected virtual void OnInitialized(EventArgs e);
abstract member OnInitialized : EventArgs -> unit
override this.OnInitialized : EventArgs -> unit
Protected Overridable Sub OnInitialized (e As EventArgs)

參數

e
EventArgs

活動資料。

備註

此虛擬方法的預設實作會如本主題先前所述,引發事件。 覆寫應呼叫 base() 以維持此行為。

請注意,該 IsInitialized 屬性為唯讀。 因此,你無法設定它強制初始化行為。 初始化設定僅由 Windows Presentation Foundation(WPF)框架負責。

適用於