ViewModelViewHost.ResolveViewForViewModel(object?, string?) method¶
Defined in
Type: ViewModelViewHost
Namespace: ReactiveUI.Maui
Assembly: ReactiveUI.Maui.dll
Applies to
net10.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-tvos26.0, net10.0-macos26.0, net10.0-windows10.0.19041
protected virtual void ResolveViewForViewModel(object? viewModel, string? contract)
Summary: Resolves a view for the view model using the specified contract.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | object? | ViewModel. |
contract | string? | contract used by ViewLocator. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | No view is registered for viewModel. |