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¶
| Name | Summary |
|---|---|
| .ctor | A service that provides methods related to navigation. |
Methods¶
| Name | Summary |
|---|---|
| GetNavigationControl | Provides direct access to the control responsible for navigation. |
| SetNavigationControl | Lets you attach the control that represents the [INavigationView](# |
| SetPageService | Lets you attach the service that delivers page instances to [INavigationView](# |
| Navigate | Lets you navigate to the selected page based on it's type. Should be used with [IPageService](# |
| GoBack | Navigates the NavigationView to the previous journal entry. |
| GoForward | Navigates the NavigationView to the next journal entry. |
| NavigateWithHierarchy | Synchronously adds an element to the navigation stack and navigates current navigation Frame to the page represented by the element. |
| ThrowIfNavigationControlIsNull | Throws if navigation control is null. |
| ThrowIfPageServiceIsNull | Throws if page service is null. |