C# Class Catel.MVVM.Navigation.NavigationAdapter

Show file Open project: Catel/Catel

Private Properties

Property Type Description
DetermineNavigationContext void
Initialize void
OnBackPressed void
Uninitialize void

Public Methods

Method Description
OnNavigatedEvent ( object sender, System.Windows.Navigation.NavigationEventArgs e ) : void

Called when the Navigating event is invoked.

This method is public due to the fact that weak events are used. Otherwise, the navigation completed events could not be handled (because we unsubscribed from the RootFrame) when navigating away to prevent memory leaks. Please, do not call this method yourself, otherwise you can seriously ruin your apps.

OnNavigatingEvent ( object sender, System.Windows.Navigation.NavigatingCancelEventArgs e ) : void

Called when the Navigated event is invoked.

This method is public due to the fact that weak events are used. Otherwise, the navigation completed events could not be handled (because we unsubscribed from the RootFrame) when navigating away to prevent memory leaks. Please, do not call this method yourself, otherwise you can seriously ruin your apps.

Protected Methods

Method Description
CanHandleNavigation ( ) : bool

Determines whether the navigation can be handled by this adapter.

GetNavigationUri ( object target ) : string

Gets the navigation URI for the target page.

Private Methods

Method Description
DetermineNavigationContext ( ) : void
Initialize ( ) : void
OnBackPressed ( object sender, BackPressedEventArgs e ) : void
Uninitialize ( ) : void

Method Details

CanHandleNavigation() protected method

Determines whether the navigation can be handled by this adapter.
protected CanHandleNavigation ( ) : bool
return bool

GetNavigationUri() protected method

Gets the navigation URI for the target page.
protected GetNavigationUri ( object target ) : string
target object The target.
return string

OnNavigatedEvent() public method

Called when the Navigating event is invoked.
This method is public due to the fact that weak events are used. Otherwise, the navigation completed events could not be handled (because we unsubscribed from the RootFrame) when navigating away to prevent memory leaks. Please, do not call this method yourself, otherwise you can seriously ruin your apps.
public OnNavigatedEvent ( object sender, System.Windows.Navigation.NavigationEventArgs e ) : void
sender object The sender.
e System.Windows.Navigation.NavigationEventArgs The instance containing the event data.
return void

OnNavigatingEvent() public method

Called when the Navigated event is invoked.
This method is public due to the fact that weak events are used. Otherwise, the navigation completed events could not be handled (because we unsubscribed from the RootFrame) when navigating away to prevent memory leaks. Please, do not call this method yourself, otherwise you can seriously ruin your apps.
public OnNavigatingEvent ( object sender, System.Windows.Navigation.NavigatingCancelEventArgs e ) : void
sender object The sender.
e System.Windows.Navigation.NavigatingCancelEventArgs The instance containing the event data.
return void