C# Class Catel.Services.NavigationService

Service to navigate inside applications.
Show file Open project: Catel/Catel

Private Properties

Property Type Description
CloseMainWindow void
Initialize void
NavigateBack void
NavigateForward void
NavigateToUri void
NavigateWithParameters void
ToQueryString string

Public Methods

Method Description
GetBackStackCount ( ) : int

Returns the number of total back entries (which is the navigation history).

RemoveAllBackEntries ( ) : void

Removes all the back entries from the navigation history.

RemoveBackEntry ( ) : void

Removes the last back entry from the navigation history.

Protected Methods

Method Description
ResolveNavigationTarget ( Type viewModelType ) : string

Resolves the navigation target.

Private Methods

Method Description
CloseMainWindow ( ) : void
Initialize ( ) : void
NavigateBack ( ) : void
NavigateForward ( ) : void
NavigateToUri ( Uri uri ) : void
NavigateWithParameters ( string uri, object>.Dictionary parameters ) : void
ToQueryString ( object>.Dictionary parameters ) : string

Converts a dictionary to query string parameters.

This method uses the Object.ToString method to convert values to a parameter value. Make sure that the objects passed correctly support this.

Method Details

GetBackStackCount() public method

Returns the number of total back entries (which is the navigation history).
public GetBackStackCount ( ) : int
return int

RemoveAllBackEntries() public method

Removes all the back entries from the navigation history.
public RemoveAllBackEntries ( ) : void
return void

RemoveBackEntry() public method

Removes the last back entry from the navigation history.
public RemoveBackEntry ( ) : void
return void

ResolveNavigationTarget() protected method

Resolves the navigation target.
protected ResolveNavigationTarget ( Type viewModelType ) : string
viewModelType System.Type The view model type.
return string