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
Summary: Adds the navigation view.
Type parameters
| Name | Description |
|---|---|
TView | The type of the view. |
TViewModel | The type of the view model. |
Parameters
| Name | Type | Description |
|---|---|---|
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
Summary: Adds the navigation view.
Type parameters
| Name | Description |
|---|---|
TView | The type of the view. |
TViewModel | The type of the view model. |
Parameters
| Name | Type | Description |
|---|---|---|
serviceLocator | [IServiceLocator](# | The service locator. |
contract | string | The contract. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | serviceLocator. |