Skip to content

ServiceLocatorMixins.AddNavigationView(IServiceLocator) method

Defined in

Type: ServiceLocatorMixins Namespace: ReactiveMarbles.Locator 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 void AddNavigationView<TView, TViewModel>(this IServiceLocator serviceLocator) where TView : class, IAmViewFor<TViewModel>, new() where TViewModel : class, IRxNavBase
  • 2. public static void AddNavigationView<TView, TViewModel>(this IServiceLocator serviceLocator, string contract) where TView : class, IAmViewFor<TViewModel>, new() where TViewModel : class, IRxNavBase

1. Overload

public static void AddNavigationView<TView, TViewModel>(this IServiceLocator serviceLocator) where TView : class, IAmViewFor<TViewModel>, new() where TViewModel : class, IRxNavBase

View source

Summary: Adds the navigation view.

Type parameters

NameDescription
TViewThe type of the view.
TViewModelThe type of the view model.

Parameters

NameTypeDescription
serviceLocator[IServiceLocator](#The service locator.

2. Overload

public static void AddNavigationView<TView, TViewModel>(this IServiceLocator serviceLocator, string contract) where TView : class, IAmViewFor<TViewModel>, new() where TViewModel : class, IRxNavBase

View source

Summary: Adds the navigation view.

Type parameters

NameDescription
TViewThe type of the view.
TViewModelThe type of the view model.

Parameters

NameTypeDescription
serviceLocator[IServiceLocator](#The service locator.
contractstringThe contract.

Exceptions

TypeCondition
System.ArgumentNullExceptionserviceLocator.