Skip to content

NavigationService class

Defined in

Namespace: CrissCross.Avalonia.UI Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.NavigationService Modifiers: public

Summary

        A service that provides methods related to navigation.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class NavigationService
class INavigationService {
    <>
}
INavigationService <|.. NavigationService

Implements: INavigationService

Remarks

Initializes a new instance of the NavigationService class.

Constructors

NameSummary
.ctorA service that provides methods related to navigation.

Methods

NameSummary
GetNavigationControlProvides direct access to the control responsible for navigation.
SetNavigationControlLets you attach the control that represents the [INavigationView](#
SetPageServiceLets you attach the service that delivers page instances to [INavigationView](#
NavigateLets you navigate to the selected page based on it's type. Should be used with [IPageService](#
GoBackNavigates the NavigationView to the previous journal entry.
GoForwardNavigates the NavigationView to the next journal entry.
NavigateWithHierarchySynchronously adds an element to the navigation stack and navigates current navigation Frame to the page represented by the element.
ThrowIfNavigationControlIsNullThrows if navigation control is null.
ThrowIfPageServiceIsNullThrows if page service is null.
Inherited members