MediaCenterEnvironment.NavigateToPage Method

Directs Windows Media Center to navigate to the specified page in the Windows Media Center user interface.

Syntax

public void NavigateToPage(
   PageId pageId,
   object pageParameters
);

Parameters

pageId

Microsoft.MediaCenter.PageId.  The identifier of a Windows Media Center page.

pageParameters

System.Object.  Additional parameters. For more information, see the Remarks section.

Return Value

This method does not return a value.

Remarks

The value of the pageId parameter determines the value of the pageParameters parameter, as shown in the following table:

PageId field pageParameters
PageId.ExtensibilityUrl URL of the destination page.
PageId.FMRadio Null
PageId.InternetRadio Null
PageId.LiveTV Null
PageId.ManageDisks Null
PageId.MorePrograms Null
PageId.MovieLibrary Null
PageId.MusicAlbums Null
PageId.MusicArtists Null
PageId.MusicSongs Null
PageId.MyMusic Null
PageId.MyPictures Path to folder
PageId.MyTV Null
PageId.MyVideos Path to folder
PageId.PhotoDetails Path to the photo for which the application should show details.
PageId.RecordedTV Null
PageId.RecorderStorageSettings Null
PageId.ScheduledTVRecordings Null
PageId.Slideshow Path to folder
PageId.SlideshowSettings Null
PageId.Start Null
PageId.TVGuide Null
PageId.Visualizations visualizationName:preset
PageId.WebAddIn URL of the destination page.

If pageId is PageId.Visualizations, pageParameters is a string containing the visualization name (from the registry) and preset, separated by a colon. For example, "Ambience:Swirl". If a visualization name is specified, but not a preset, Windows Media Center uses the previously selected preset. Similarly, if a preset is specified, but not a visualization name, Windows Media Center uses the previously selected visualization.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

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

See Also