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

イベントのイベント データ。

注釈

このメソッドは、メイン ウィンドウを作成するために 1 回、ホストされているウィンドウごとに 1 回、CreateNewView が呼び出されるたびに 1 回呼び出されます。 たとえば、SearchPane.GetForCurrentViewSettingsPane.GetForCurrentView などの GetForCurrentView メソッドを呼び出すことで、このメソッドをオーバーライドしてさまざまなペインにアクセスできます。

適用対象