Application.OnWindowCreated(WindowCreatedEventArgs) 方法

定義

當應用程式建立視窗時叫用。

protected:
 virtual void OnWindowCreated(WindowCreatedEventArgs ^ args) = OnWindowCreated;
void OnWindowCreated(WindowCreatedEventArgs const& args);
protected virtual void OnWindowCreated(WindowCreatedEventArgs args);
function onWindowCreated(args)
Protected Overridable Sub OnWindowCreated (args As WindowCreatedEventArgs)

參數

args
WindowCreatedEventArgs

事件的事件資料。

備註

這個方法會在建立主視窗時呼叫一次、針對每個裝載的視窗呼叫一次,每次呼叫 CreateNewView 一次。 例如,您可以呼叫SearchPane.GetForCurrentViewSettingsPane.GetForCurrentViewGetForCurrentView方法來存取各種窗格。

適用於