Interface IUiViewModelFactory
Factory interface for creating UI view models.
Namespace: Serenity.Ui.Application.Interfaces.ViewModels.Factories
Assembly: Serenity.Ui.Application.dll
Syntax
public interface IUiViewModelFactory
Methods
CreateViewModel(string)
Creates a UI view model with the specified ID.
Declaration
IViewModel CreateViewModel(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The identifier for the view model to be created. |
Returns
| Type | Description |
|---|---|
| IViewModel | An instance of IViewModel. |