Interface IViewModelLocator
Represents an interface for a service to locate a view model by model.
public interface IViewModelLocator
Methods
GetViewModel(object, params object[])
Gets the view model for the model
.
object GetViewModel(object model, params object[] parameters)
Parameters
model
objectModel to locate the view model.
parameters
object[]Parameters for view model construction.
Returns
- object
The located view model.
GetViewModelByKey(string, object, params object[])
Gets the view model for the model
and key
.
object GetViewModelByKey(string key, object model, params object[] parameters)
Parameters
key
stringKey of the view model location.
model
objectModel to locate the view model.
parameters
object[]Parameters for view model construction.
Returns
- object
The located view model.
Register(object, object)
Register an view model for a model.
void Register(object model, object viewModel)
Parameters
Register(string, object, object)
Register an view model for a model and key.
void Register(string key, object model, object viewModel)