Share via


ApplicationSession Class

The base class that contains core functionality used by the PageSession and HistoryOrientedPageSession classes.

  public abstract class ApplicationSession

Members

Public Instance Constructor

Method Description
ApplicationSession Initializes a new instance of the ApplicationSession class.

Public Static Properties

Property Description
Current Retrieves the current application session.

Public Instance Properties

Property Description
Source Gets or sets the source MCML that is currently loaded in the application, which is the last value that was passed to the LoadTargetUi method.
TargetHost Gets or sets the target host.

Protected Instance Methods

Method Description
CreateUiHost Allows derived classes to do a one-time extensive intialization when the the session is first used to load UI.
EnsureUiHost Called by child classes to create the UI connection to the Windows Media Center shell.
LoadTargetUi Loads the MCML into a UI host.
OnNavigate Called when the NavigateCommand element is invoked in the application. The parameters from NavigateCommand are passed directly to this method.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter.Hosting

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also