Table of Contents

Interface IContainerControl

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Interface for controls that contain child controls. All GUI frameworks expose children from containers - this is fundamental. Enables focus system to build flattened list of all focusable controls, including deeply nested controls within containers.

public interface IContainerControl
Extension Methods

Methods

GetChildren()

Gets the direct child controls of this container. Does not recursively include grandchildren - recursion happens in caller.

IReadOnlyList<IWindowControl> GetChildren()

Returns

IReadOnlyList<IWindowControl>

Read-only list of direct child controls (may include other containers)

Remarks

IMPORTANT: For HorizontalGridControl, this should return columns AND splitters in order: [Column1, Splitter1, Column2, Splitter2, Column3]

Splitters are IInteractiveControl and should be included in Tab navigation.