ApplicationContext.ReturnToApplication Method
Navigates Windows Media Center back to the application that called this method.
Syntax
public void ReturnToApplication();
Parameters
This method takes no parameters.
Return Value
This method does not return a value.
Remarks
An application that plays video in full-screen mode can use this method to regain the focus after full-screen playback concludes.
Before calling this method, background applications can use the ApplicationContext.IsForegroundApplication property to determine whether the application is being displayed, and the MediaExperience.IsFullScreen property to determine whether the current media is in full-screen mode.
Foreground applications can use this method to have Windows Media Center return to their application, for example after playing full-screen video.
Requirements
Reference: Microsoft.MediaCenter
Namespace: Microsoft.MediaCenter.AddIn
Assembly: Microsoft.MediaCenter.dll
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also