ViewModelRoutedViewHostMixins.NavigateToView(IUseNavigation, string?, object?) method¶
Defined in
Type: ViewModelRoutedViewHostMixins
Namespace: ReactiveMarbles.ViewModel.Core
Assembly: ReactiveMarbles.ViewModel.Core.dll
Applies to
net8.0, net8.0-android34.0, net8.0-ios17.2, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, net8.0-maccatalyst17.2, netstandard2.0, net462
Overloads¶
- 1.
public static IUseNavigation NavigateToView<T>(this IUseNavigation @this, string? contract = null, object? parameter = null) where T : class, IRxNavBase - 2.
public static IUseHostedNavigation NavigateToView<T>(this IUseHostedNavigation @this, string? hostName = "", string? contract = null, object? parameter = null) where T : class, IRxNavBase
1. Overload¶
public static IUseNavigation NavigateToView<T>(this IUseNavigation @this, string? contract = null, object? parameter = null) where T : class, IRxNavBase
Summary: Navigates the specified contract.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IUseNavigation](# | The this. |
contract = null | string? | The contract. |
parameter = null | object? | The parameter. |
Returns: IUseNavigation -- Chainable host.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | this. |
| System.InvalidOperationException | No navigation host registered, please ensure that the NavigationShell has a Name. |
2. Overload¶
public static IUseHostedNavigation NavigateToView<T>(this IUseHostedNavigation @this, string? hostName = "", string? contract = null, object? parameter = null) where T : class, IRxNavBase
Summary: Navigates to view.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IUseHostedNavigation](# | The this. |
hostName = "" | string? | Name of the host. |
contract = null | string? | The contract. |
parameter = null | object? | The parameter. |
Returns: IUseHostedNavigation -- Chainable host.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | No navigation host registered, please ensure that the NavigationShell has a Name. |