ViewLocatorMixin.ResolveView(IViewLocator, TViewModel) method¶
Defined in
Type: ViewLocatorMixin
Namespace: ReactiveUI.Binding
Assembly: ReactiveUI.Binding.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, net462, net481
Overloads¶
- 1.
public static IViewFor? ResolveView<TViewModel>(this IViewLocator locator, TViewModel viewModel) where TViewModel : class - 2.
public static IViewFor? ResolveView(this IViewLocator locator, object? viewModel)
1. Overload¶
public static IViewFor? ResolveView<TViewModel>(this IViewLocator locator, TViewModel viewModel) where TViewModel : class
Summary: Resolves a view for the specified view model type using the default contract.
Type parameters
| Name | Description |
|---|---|
TViewModel | The type of the view model. |
Parameters
| Name | Type | Description |
|---|---|---|
locator | [IViewLocator](# | The view locator. |
viewModel | TViewModel | The view model instance to resolve a view for. |
Returns: IViewFor? -- The resolved view, or null if no view is found.
2. Overload¶
public static IViewFor? ResolveView(this IViewLocator locator, object? viewModel)
Summary: Resolves a view for the specified view model instance using the default contract.
Parameters
| Name | Type | Description |
|---|---|---|
locator | [IViewLocator](# | The view locator. |
viewModel | object? | The view model instance to resolve a view for. |
Returns: IViewFor? -- The resolved view, or null if no view is found.