ApplicationContext Class

Enables an application to register and unregister other Windows Media Center applications. This class also enables an application to determine whether it is the current foreground application in Windows Media Center.

Syntax

public class ApplicationContext : Microsoft.MediaCenter.UI.IPropertyObject

Public Static Methods

Method Description
RegisterApplication Registers an application and its supported entry points with Windows Media Center.

Public Instance Methods

Method Description
CloseApplication Closes the current application.
InstallApplication Runs the application installation package.
IsApplicationRegistered Indicates whether a particular application is registered with Windows Media Center.
IsEntryPointRegistered Indicates whether a particular entry point in the current application is registered with Windows Media Center.
ReturnToApplication Navigates Windows Media Center back to the application that called this method.

Public Instance Properties

Property Description
ApplicationInfo Gets the application properties from the XML that was used to register the application.
EntryPointInfo Gets the entry point information from the XML that was used to register the application. This information is returned only for the current entry point.
IsCurrentlyVisible Gets a value that indicates whether the application is currently visible.
IsForegroundApplication Gets a value that indicates whether the application is the current Windows Media Center foreground application.
SingleInstance Gets a value that indicates whether only one instance of the application can be running.

Public Instance Events

Event Description
PropertyChanged Raised when an ApplicationContext property changes.
Relaunch Raised when the application is started again.

See Also