Gorgon
Show / Hide Table of Contents

Class EditorToolViewModelInjection

Common editor tool view model parameters.

Inheritance
object
ViewModelInjection<IHostContentServices>
EditorToolViewModelInjection
Implements
IEditorToolViewModelInjection
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.ViewModels
Assembly: Gorgon.Editor.API.dll
Syntax
public class EditorToolViewModelInjection : ViewModelInjection<IHostContentServices>, IEditorToolViewModelInjection, IViewModelInjection<IHostContentServices>
Remarks

These parameters are meant to be passed to a view model based on the EditorToolViewModelBase<T> type and will contain services from the host application, and any other information required for editor tool plug in view models.

Tool plug in developers will use types derived from this type to pass custom initialization parameters to their tool plug in view models.

Constructors

| Edit this page View Source

EditorToolViewModelInjection(IContentFileManager, IHostContentServices)

Initializes a new instance of the EditorToolViewModelInjection class.

Declaration
public EditorToolViewModelInjection(IContentFileManager contentFileManager, IHostContentServices hostServices)
Parameters
Type Name Description
IContentFileManager contentFileManager

The content file manager.

IHostContentServices hostServices

The host services.

Exceptions
Type Condition
ArgumentNullException

Thown when the contentFileManager, or the hostServices parameter is null.

See Also
EditorToolViewModelBase<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
EditorToolViewModelBase<T>

Implements

IEditorToolViewModelInjection
IViewModelInjection<T>

Extension Methods

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

See Also

EditorToolViewModelBase<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