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
System.Object
System.Windows.Navigation.PageResourceContentLoader
Namespace: System.Windows.Navigation
Assembly: System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)
Syntax
'Declaration
Public NotInheritable Class PageResourceContentLoader _
Implements INavigationContentLoader
public sealed class PageResourceContentLoader : INavigationContentLoader
The PageResourceContentLoader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PageResourceContentLoader | Initializes a new instance of the PageResourceContentLoader class. |
Top
Methods
Name | Description | |
---|---|---|
BeginLoad | Begins asynchronous loading of the page that corresponds to the specified target URI. | |
CancelLoad | Attempts to cancel content loading for the specified asynchronous operation. | |
CanLoad | Gets a value that indicates whether the specified URI can be loaded. | |
EndLoad | Completes the asynchronous content loading operation. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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
Silverlight
Supported in: 5, 4
Platforms
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.
See Also