Table of Contents

Interface IViewModelLocator

Namespace
Loehnert.Lisrt.Framework.Services
Assembly
Loehnert.Lisrt.dll

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 object

Model 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 string

Key of the view model location.

model object

Model 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

model object

Model whose view model should be registered.

viewModel object

View model to register.

Register(string, object, object)

Register an view model for a model and key.

void Register(string key, object model, object viewModel)

Parameters

key string

Key of view model to register.

model object

Model whose view model should be registered.

viewModel object

View model to register.