Interface IViewLocator
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Implement this to override how RoutedViewHost and ViewModelViewHost map ViewModels to Views.
public interface IViewLocator : IEnableLogger
Methods
ResolveView<T>(T?, string?)
Determines the view for an associated ViewModel.
IViewFor? ResolveView<T>(T? viewModel, string? contract = null)
Parameters
viewModel
TView model.
contract
stringContract.
Returns
- IViewFor
The view associated with the given view model.
Type Parameters
T
The view model type.