Class ContentViewModelInjection
Common content view model parameters.
Inherited Members
Namespace: Gorgon.Editor.UI
Assembly: Gorgon.Editor.API.dll
Syntax
public class ContentViewModelInjection : ViewModelInjection<IHostContentServices>, IContentViewModelInjection, IViewModelInjection<IHostContentServices>
Remarks
These parameters are meant to be passed to a view model based on the ContentEditorViewModelBase<T> type and will contain services from the host application, and any other information required for content editor view models.
Content editor developers will use types derived from this type to pass custom initialization parameters to their content view models.
Constructors
| Edit this page View SourceContentViewModelInjection(IContentFileManager, IContentFile, IHostContentServices)
Initializes a new instance of the ContentViewModelInjectionCommon class.
Declaration
public ContentViewModelInjection(IContentFileManager fileManager, IContentFile file, IHostContentServices commonServices)
Parameters
Type | Name | Description |
---|---|---|
IContentFileManager | fileManager | The file manager for content files. |
IContentFile | file | The file that contains the content. |
IHostContentServices | commonServices | The common services for the application. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown any of the parameters are null |
See Also
Properties
| Edit this page View SourceContentFileManager
Property to return the file manager for content files.
Declaration
public IContentFileManager ContentFileManager { get; }
Property Value
Type | Description |
---|---|
IContentFileManager |
See Also
| Edit this page View SourceFile
Property to return the content file.
Declaration
public IContentFile File { get; }
Property Value
Type | Description |
---|---|
IContentFile |