Export (0) Print
Expand All

PageResourceContentLoader.BeginLoad Method

Silverlight

Begins asynchronous loading of the page that corresponds to the specified target URI.

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

public IAsyncResult BeginLoad(
	Uri targetUri,
	Uri currentUri,
	AsyncCallback userCallback,
	Object asyncState
)

Parameters

targetUri
Type: System.Uri
The URI of the page to load.
currentUri
Type: System.Uri
The URI of the page that is currently loaded.
userCallback
Type: System.AsyncCallback
The method to call when the page finishes loading.
asyncState
Type: System.Object
An object for storing custom state information.

Return Value

Type: System.IAsyncResult
An object that stores information about the asynchronous operation.

Implements

INavigationContentLoader.BeginLoad(Uri, Uri, AsyncCallback, Object)

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

This method is called by the navigation system to begin loading the content that corresponds to the targetUri value. The EndLoad method is called from the specified userCallback method to retrieve the loaded content. In this case, the argument passed to the userCallback method is passed to the EndLoad method.

The asyncState parameter is used to distinguish between multiple BeginLoad method calls.

Silverlight

Supported in: 5, 4

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

Community Additions

ADD
Show:
© 2015 Microsoft