Table of Contents

Class ScreenInjector<T>

Namespace
Dynamicweb.CoreUI.Screens
Assembly
Dynamicweb.CoreUI.dll

Base class for injecting behaviour into any screen without modifying the screen itself. Implementations are discovered automatically via AddInManager — no DI registration required.

public abstract class ScreenInjector<T> where T : ScreenBase

Type Parameters

T

The screen type to inject into.

Inheritance
ScreenInjector<T>
Derived
EditScreenInjector<TScreen, TModel>
Inherited Members

Remarks

Use the more specific subclasses for common screen types:

Properties

Screen

The screen instance currently being built. Available during all hook calls.

public T? Screen { get; }

Property Value

T

Methods

OnAfter(T, UiComponentBase)

Called after the screen content has been built, allowing post-processing of the rendered component tree.

public virtual void OnAfter(T screen, UiComponentBase content)

Parameters

screen T
content UiComponentBase

OnBefore(T)

Called before the screen content is built.

public virtual void OnBefore(T screen)

Parameters

screen T
To top