Remarks

By default, the app object displays the main window of the app when it is first activated. This method forces the app to display the most recently displayed window upon subsequent activations. Note that the app must call this method before completing the first non-hosted activation, and the app must also only call CoreWindow.Activate for hosted activations from the UI thread of the displayed window.

Asynchronously returns true if the call succeeds; false if it does not.

Remarks

If this method succeeds, a new window is created next to the original window. It can only be called from an ASTA (core UI) thread.

The new window has its own UI thread (ASTA) and associated CoreWindow. Developers should use thread-safe methods for communication between the windows, such as window.postMessage for JavaScript apps and the CoreDispatcher (CoreWindow.Dispatcher ) messaging for C# and C++ developers.

Asynchronously returns true if the call succeeds; false if it does not.

Remarks

If this method succeeds, a new window is created next to the original window. It can only be called from an ASTA (core UI) thread.

The new window has its own UI thread (ASTA) and associated CoreWindow. Developers should use thread-safe methods for communication between the windows, such as window.postMessage for JavaScript apps and the CoreDispatcher (CoreWindow.Dispatcher ) messaging for C# and C++ developers.

Asynchronously returns true if the call succeeds; false if it does not.

Remarks

If this method succeeds, a new window is created next to the original window. It can only be called from an ASTA (core UI) thread.

The new window has its own UI thread (ASTA) and associated CoreWindow. Developers should use thread-safe methods for communication between the windows, such as window.postMessage for JavaScript apps and the CoreDispatcher (CoreWindow.Dispatcher ) messaging for C# and C++ developers.

Asynchronously returns true if the call succeeds; false if it does not.

Additional features and requirements

Device family

Windows 10 Creators Update (introduced v10.0.15063.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

If this method succeeds, a new window is created next to the original window. It can only be called from an ASTA (core UI) thread.

The new window has its own UI thread (ASTA) and associated CoreWindow. Developers should use thread-safe methods for communication between the windows, such as window.postMessage for JavaScript apps and the CoreDispatcher (CoreWindow.Dispatcher ) messaging for C# and C++ developers.

Asynchronously returns true if the call succeeds; false if it does not.

Additional features and requirements

Device family

Windows 10 Creators Update (introduced v10.0.15063.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

If this method succeeds, a new window is created next to the original window. It can only be called from an ASTA (core UI) thread.

The new window has its own UI thread (ASTA) and associated CoreWindow. Developers should use thread-safe methods for communication between the windows, such as window.postMessage for JavaScript apps and the CoreDispatcher (CoreWindow.Dispatcher ) messaging for C# and C++ developers.