Interface IControlHost
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
A container whose children are a linear list of IWindowControl that can
be added, removed, cleared, and enumerated. Implemented by containers with a flat
child model (e.g. ScrollablePanelControl, ColumnContainer,
Window) — not by TabControl, MenuControl,
ToolbarControl, or NavigationView, whose child models differ.
public interface IControlHost
- Extension Methods
Remarks
This is a capability interface. It lets a consumer mutate children without binding to a concrete container type, and is intentionally separate from IContainer, which is a rendering abstraction only.
Properties
Children
Gets the current child controls in the order they were added.
IReadOnlyList<IWindowControl> Children { get; }
Property Value
Methods
AddControl(IWindowControl)
Adds a child control to the host.
void AddControl(IWindowControl control)
Parameters
controlIWindowControl
ClearControls()
Removes all child controls from the host.
void ClearControls()
RemoveControl(IWindowControl)
Removes a child control from the host.
void RemoveControl(IWindowControl control)
Parameters
controlIWindowControl