ApplicationSession.CreateUiHost Method

Allows derived classes to do a one-time extensive intialization when the the session is first used to load UI.

Syntax

  protected abstract void CreateUiHost();

Return Value

This method does not return a value.

Remarks

This method is called by the EnsureUiHost method when there is no UI connection to the Windows Media Center shell. Implementations of this method should always call base.CreateUiHost, or the UI connection in Windows Media Center will not be created and the session will not be usable to load and display MCML.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter.Hosting

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also