Interface INavigationContentLoader
Navigation interface for ContentLoader instances
Namespace: System.Windows.Navigation
Assembly: OpenSilver.Controls.Navigation.dll
Syntax
public interface INavigationContentLoader
Methods
| Improve this Doc View SourceBeginLoad(Uri, Uri, AsyncCallback, Object)
Begins asynchronous loading of the provided targetUri
.
Declaration
IAsyncResult BeginLoad(Uri targetUri, Uri currentUri, AsyncCallback userCallback, object asyncState)
Parameters
Type | Name | Description |
---|---|---|
System. |
targetUri | A URI value to resolve and begin loading. |
System. |
currentUri | The current URI. |
System. |
userCallback | A callback function that will be called when this asynchronous request is ready to have End |
System. |
asyncState | A custom state object that will be returned in System. |
Returns
Type | Description |
---|---|
System. |
An System. |
CancelLoad(IAsyncResult)
Attempts to cancel a pending load operation.
Declaration
void CancelLoad(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The System. |
Remarks
Cancellation is not guaranteed. Check the result from EndLoad to determine if cancellation was successful.
CanLoad(Uri, Uri)
Tells whether or not the targetUri is of the correct format for Begin
Declaration
bool CanLoad(Uri targetUri, Uri currentUri)
Parameters
Type | Name | Description |
---|---|---|
System. |
targetUri | A URI to load |
System. |
currentUri | The current URI |
Returns
Type | Description |
---|---|
System. |
True if the targetUri can be loaded |
EndLoad(IAsyncResult)
Completes the asynchronous loading of content
Declaration
LoadResult EndLoad(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System. |
asyncResult | The result returned from Begin |
Returns
Type | Description |
---|---|
Load |
A Load |