PageResourceContentLoader Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Loads pages from the application package (.xap file) that correspond to a given URI.

Inheritance Hierarchy


Namespace:  System.Windows.Navigation
Assembly:  System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)


Public NotInheritable Class PageResourceContentLoader _
    Implements INavigationContentLoader
public sealed class PageResourceContentLoader : INavigationContentLoader

The PageResourceContentLoader type exposes the following members.


  Name Description
Public method PageResourceContentLoader Initializes a new instance of the PageResourceContentLoader class.



  Name Description
Public method BeginLoad Begins asynchronous loading of the page that corresponds to the specified target URI.
Public method CancelLoad Attempts to cancel content loading for the specified asynchronous operation.
Public method CanLoad Gets a value that indicates whether the specified URI can be loaded.
Public method EndLoad Completes the asynchronous content loading operation.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)



Typically, you will not call the methods of this class directly unless you implement an alternative to the Silverlight navigation system.

The Silverlight navigation system uses this class as its default content loader. This class is the default implementation of INavigationContentLoader, and an instance of this class is the default value for the Frame.ContentLoader property.

The Silverlight navigation system requires the navigation target to be a UserControl instance, although you will typically load Page instances. The Page class derives from the UserControl class and provides additional navigation support.

Version Information


Supported in: 5, 4


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.