Table of Contents

Class EditScreenBase<TModel>.LayoutWrapper

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

Represents a lightweight container for grouping UI components under a common name and optional explanation.

protected class EditScreenBase<TModel>.LayoutWrapper
Inheritance
EditScreenBase<TModel>.LayoutWrapper
Inherited Members

Remarks

Use EditScreenBase<TModel>.LayoutWrapper to prepare component groups for insertion into tabs/sections without directly mutating the UI layout. This is helpful when composing screen parts before calling AddComponents to materialize them into the layout.

Constructors

LayoutWrapper(string)

Initializes a new instance of the EditScreenBase<TModel>.LayoutWrapper class with a name and no components.

public LayoutWrapper(string name)

Parameters

name string

The display name for the group. Typically rendered as a section heading.

LayoutWrapper(string, IEnumerable<UiComponentBase?>?)

Initializes a new instance of the EditScreenBase<TModel>.LayoutWrapper class with a name and an initial set of components.

public LayoutWrapper(string name, IEnumerable<UiComponentBase?>? components)

Parameters

name string

The display name for the group.

components IEnumerable<UiComponentBase>

An optional collection of components to include in the group.

LayoutWrapper(string, string, IEnumerable<UiComponentBase?>?)

Initializes a new instance of the EditScreenBase<TModel>.LayoutWrapper class with a name, explanation, and an initial set of components.

public LayoutWrapper(string name, string explanation, IEnumerable<UiComponentBase?>? components)

Parameters

name string

The display name for the group.

explanation string

An optional explanatory text shown alongside the group heading.

components IEnumerable<UiComponentBase>

An optional collection of components to include in the group.

Properties

Components

Gets the components contained in this group.

public IEnumerable<UiComponentBase?> Components { get; }

Property Value

IEnumerable<UiComponentBase>

Remarks

The returned enumeration is backed by an internal list. Use the constructor overloads to provide initial components; mutation should be performed via higher-level layout APIs.

Explanation

Gets an optional explanation shown beneath or alongside the group heading.

public string Explanation { get; }

Property Value

string

Name

Gets the display name of the group. Used as the section heading when rendered.

public string Name { get; }

Property Value

string
To top