Skip to content

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

View source

Summary: Navigates the specified contract.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
this[IUseNavigation](#The this.
contract = nullstring?The contract.
parameter = nullobject?The parameter.

Returns: IUseNavigation -- Chainable host.

Exceptions

TypeCondition
System.ArgumentNullExceptionthis.
System.InvalidOperationExceptionNo 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

View source

Summary: Navigates to view.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
this[IUseHostedNavigation](#The this.
hostName = ""string?Name of the host.
contract = nullstring?The contract.
parameter = nullobject?The parameter.

Returns: IUseHostedNavigation -- Chainable host.

Exceptions

TypeCondition
System.InvalidOperationExceptionNo navigation host registered, please ensure that the NavigationShell has a Name.