INavigationService.Navigate(Type) method¶
Defined in
Type: INavigationService
Namespace: CrissCross.Avalonia.UI
Assembly: CrissCross.Avalonia.UI.dll
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
Overloads¶
- 1.
bool Navigate(Type pageType) - 2.
bool Navigate(Type pageType, object? dataContext) - 3.
bool Navigate(string pageIdOrTargetTag) - 4.
bool Navigate(string pageIdOrTargetTag, object? dataContext)
1. Overload¶
bool Navigate(Type pageType)
Summary: Lets you navigate to the selected page based on it's type. Should be used with IPageService.
Parameters
| Name | Type | Description |
|---|---|---|
pageType | Type | Type of the page. |
Returns: bool -- true if the operation succeeds. false otherwise.
2. Overload¶
bool Navigate(Type pageType, object? dataContext)
Summary: Lets you navigate to the selected page based on it's type, Should be used with IPageService.
Parameters
| Name | Type | Description |
|---|---|---|
pageType | Type | Type of the page. |
dataContext | object? | DataContext Object. |
Returns: bool -- true if the operation succeeds. false otherwise.
3. Overload¶
bool Navigate(string pageIdOrTargetTag)
Summary: Lets you navigate to the selected page based on it's tag. Should be used with IPageService.
Parameters
| Name | Type | Description |
|---|---|---|
pageIdOrTargetTag | string | Id or tag of the page. |
Returns: bool -- true if the operation succeeds. false otherwise.
4. Overload¶
bool Navigate(string pageIdOrTargetTag, object? dataContext)
Summary: Lets you navigate to the selected page based on it's tag. Should be used with IPageService.
Parameters
| Name | Type | Description |
|---|---|---|
pageIdOrTargetTag | string | Id or tag of the page. |
dataContext | object? | DataContext Object. |
Returns: bool -- true if the operation succeeds. false otherwise.