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
TThe screen type to inject into.
- Inheritance
-
ScreenInjector<T>
- Derived
-
EditScreenInjector<TScreen, TModel>
- Inherited Members
Remarks
Use the more specific subclasses for common screen types:
- EditScreenInjector<TScreen, TModel> — add groups, editors, and actions to edit screens.
- ListScreenInjector<TScreen, TRowModel> — customise cells and actions on list screens.
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
screenTcontentUiComponentBase
OnBefore(T)
Called before the screen content is built.
public virtual void OnBefore(T screen)
Parameters
screenT