Table of Contents

Interface IScrollableContainer

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Interface for containers that can scroll to bring children into view. Used by BringIntoFocus to notify parent containers when nested child receives focus.

public interface IScrollableContainer
Extension Methods

Methods

ScrollChildIntoView(IWindowControl)

Scrolls the container to bring the specified child control into view. Should also show/highlight scrollbars if applicable.

void ScrollChildIntoView(IWindowControl child)

Parameters

child IWindowControl

The child control to bring into view (may be deeply nested)

Remarks

Implementation should use child.AbsoluteBounds to calculate position, which works correctly for deeply nested children (grandchildren, etc).