Displaying Multiple Windows

Universal apps, even when running on Windows 8.1, are hosted in a window. Not only that, but an app running on a PC can use multiple windows simultaneously. Although they are called windows in XAML-specific APIs, windows are often called views in Windows Runtime APIs. In Windows Runtime terminology, a view is the union of a window and its UI thread.

Apps show a primary window when activated, but you can create and show any number of secondary windows on a PC. You create a secondary window by calling CoreApplicationView.CreateNewView. This returns a CoreApplicationView instance representing the new window and its UI thread, but you can’t interact with it yet. You must wait for Application.OnWindowCreated to be called, ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.