Application.OnWindowCreated method

Applies to Windows and Windows Phone

Invoked when the application creates a window.

Syntax


protected virtual void OnWindowCreated(
  WindowCreatedEventArgs args
)

Parameters

args

Type: WindowCreatedEventArgs

Event data for the event.

Remarks

This method is called once for the creation of the main window, once for each hosted window, and once each time CreateNewView is called. You can override this method, for example, to access various panes by calling GetForCurrentView methods such as SearchPane.GetForCurrentView and SettingsPane.GetForCurrentView.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Application

 

 

Show:
© 2014 Microsoft