Application.OnWindowCreated method

This topic has not yet been rated - Rate this topic

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

Namespace

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

Metadata

Windows.winmd

See also

Application

 

 

Build date: 1/31/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.