NavigationAdapter

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM.Navigation
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public class NavigationAdapter : NavigationAdapterBase

Base types NavigationAdapterBase

Navigation adapter class because everyone seems to be implementing their own :-(

Fields

Constructors

Initializes a new instance of the NavigationAdapter class.

Parameters

Name Description
navigationTarget The navigation target.
navigationRoot The navigation root.

Properties

Gets the navigation context.

Gets the navigation root.

Gets the navigation target.

Gets the type of the navigation target.

Events

Occurs when the app has navigated away from this view.

Occurs when the app has navigated to this view.

Occurs when the app is about to navigate away from this view.

Methods

CanHandleNavigation()

Determines whether the navigation can be handled by this adapter.

Returns

true if the navigation can be handled by this adapter; otherwise,false.

GetNavigationUri(object target)

Gets the navigation URI for the target page.

Parameters

Name Description
target The target.

Returns

System.String.

GetNavigationUriForTargetPage()

Gets the navigation URI for the target page.

Returns

System.String.

RaiseNavigatedAway(NavigatedEventArgs e)

Raises the NavigatedAway event.

Parameters

Name Description
e The NavigatedEventArgs instance containing the event data.

RaiseNavigatedTo(NavigatedEventArgs e)

Raises the NavigatedTo event.

Parameters

Name Description
e The NavigatedEventArgs instance containing the event data.

RaiseNavigatingAway(NavigatingEventArgs e)

Raises the NavigatingAway event.

Parameters

Name Description
e The NavigatingEventArgs instance containing the event data.

UninitializeNavigationService()

Uninitializes the navigation service.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion