Gorgon
Show / Hide Table of Contents

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 Source

HostServices

Property to return the common services passed from host application.

Declaration
T HostServices { get; }
Property Value
Type Description
T
See Also
IHostServices

Extension Methods

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

See Also

IHostServices
  • 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