Class ScreenBase<TModel>
- Namespace
- Dynamicweb.CoreUI.Screens
- Assembly
- Dynamicweb.CoreUI.dll
Base class for screens that are bound to a specific model type.
public abstract class ScreenBase<TModel> : ScreenBase
Type Parameters
TModelThe model type this screen operates on.
- Inheritance
-
ScreenBase<TModel>
- Derived
- Inherited Members
Remarks
Subclass this instead of ScreenBase when the screen requires a typed data model. Supply a Query to have the model resolved lazily on first access.
Properties
Model
The model instance for this screen. Resolved lazily from Query on first access.
public TModel? Model { get; }
Property Value
- TModel
Query
The data query used to resolve Model. Set by the framework before the screen is rendered.
public DataQueryModelBase<TModel>? Query { get; }
Property Value
- DataQueryModelBase<TModel>
Methods
GetNavigationNodePath()
Returns all navigation node paths for the current model by querying each registered NavigationNodePathProvider.
public override sealed IEnumerable<NavigationNodePath> GetNavigationNodePath()
Returns
GetNavigationNodePathProviders()
Returns the NavigationNodePathProvider instances used to build the navigation breadcrumb for TModel.
protected virtual IEnumerable<NavigationNodePathProvider> GetNavigationNodePathProviders()
Returns
Remarks
Override to supply custom or additional path providers. The default implementation discovers all registered NavigationNodePathProvider<TModel> add-ins.