Share via


ApplicationContext.IsForegroundApplication Property

Gets a value that indicates whether the application is the current Windows Media Center foreground application.

Syntax

public bool IsForegroundApplication {get;}

Property Value

System.Boolean. It is true if the application is the current foreground application, and false otherwise.

This property is read-only.

Remarks

This property is intended to be used by a background application to determine whether another entry point of the same application is currently the foreground application.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter.Hosting

Assembly: Microsoft.MediaCenter.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also