Ensuring the Application Has a Single Instance

If the application owns the current media experience, the user can return to the application at any time by selecting the Now Playing tile on the Windows Media Center Start menu as long as the application has been marked as single instance (only one instance of the application can be running).

If the application has not yet been trimmed from the Windows Media Center back stack and the user launches it again, ensuring the application is single instance will return to the current instance rather than launching a new instance.

For web MCML applications, place the following in the landing page:

<Default Target="[AddInHost.ApplicationContext.SingleInstance]" Value="True" />

For installed applications, place the following in the Launch method:

public void Launch(AddInHost host)
{
    host.ApplicationContext.SingleInstance = true;
}

Sample Explorer

  • ApplicationContext > Single Instance

See Also