Interface IViewModelInjection<T>
This object is used to inject common host application services into view models as parameters.
Namespace: Gorgon.Editor.UI
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IViewModelInjection<out T> where T : IHostServices
Type Parameters
Name | Description |
---|---|
T | The type of host services. Must implement IHostServices. |
Remarks
When creating view models, developers should pass custom data used for initialization by inheriting this type. For content, settings, etc... or other built in view model types, there are other base classes for the parameters that should be used.
Properties
| Edit this page View SourceHostServices
Property to return the common services passed from host application.
Declaration
T HostServices { get; }
Property Value
Type | Description |
---|---|
T |