Gorgon
Show / Hide Table of Contents

Class ContentViewModelInjection

Common content view model parameters.

Inheritance
object
ViewModelInjection<IHostContentServices>
ContentViewModelInjection
Implements
IContentViewModelInjection
IViewModelInjection<IHostContentServices>
Inherited Members
ViewModelInjection<IHostContentServices>.HostServices
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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 Source

ContentViewModelInjection(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
ContentEditorViewModelBase<T>

Properties

| Edit this page View Source

ContentFileManager

Property to return the file manager for content files.

Declaration
public IContentFileManager ContentFileManager { get; }
Property Value
Type Description
IContentFileManager
See Also
ContentEditorViewModelBase<T>
| Edit this page View Source

File

Property to return the content file.

Declaration
public IContentFile File { get; }
Property Value
Type Description
IContentFile
See Also
ContentEditorViewModelBase<T>

Implements

IContentViewModelInjection
IViewModelInjection<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)

See Also

ContentEditorViewModelBase<T>
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author