SharedViewPort Object

Provides a way for HTML applications to control and retrieve information about the shared view port, which is the media window that appears at the lower-left corner of the screen in Windows Media Center. The shared view port provides a space to continuously display the current media experience in hosted HTML applications as well as in other areas of the Windows Media Center user interface.

Note   Hosted HTML has been deprecated. To use the new features of the Windows Media Center SDK, you must develop a Windows Media Center Presentation Layer application. However, if you still want to develop a hosted HTML application or update an existing application, you can download and use the previous version of the Windows Media Center SDK from the Microsoft Download Center.

The SharedViewPort object exposes the following properties:

Property Description
BorderColor Sets the RGB value to use for the border when the shared view port does not have the focus.
FocusBorderColor Sets the RGB value to use for the border when the shared view port has the focus.
Rectangle Gets the rectangle representing the bounding box for the shared view port.
Visible Gets a value that indicates whether the shared view port window is hidden or visible.

The SharedViewPort object exposes the following methods:

Method Description
Focus Requests that Windows Media Center set the focus to the shared view port.

See Also