PageResourceContentLoader Class


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


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

public sealed class PageResourceContentLoader : INavigationContentLoader

The PageResourceContentLoader type exposes the following members.

Public methodPageResourceContentLoaderInitializes a new instance of the PageResourceContentLoader class.

Public methodBeginLoadBegins asynchronous loading of the page that corresponds to the specified target URI.
Public methodCancelLoadAttempts to cancel content loading for the specified asynchronous operation.
Public methodCanLoadGets a value that indicates whether the specified URI can be loaded.
Public methodEndLoadCompletes the asynchronous content loading operation.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns 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.


Supported in: 5, 4

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

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