Table of Contents

Interface ILayoutAware

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Optional interface for controls that participate in layout negotiation. Controls implementing this interface can express their sizing requirements and receive notifications when their allocated space changes.

public interface ILayoutAware

Methods

GetLayoutRequirements()

Gets the control's layout requirements. Called during the measure phase before painting.

LayoutRequirements GetLayoutRequirements()

Returns

LayoutRequirements

OnLayoutAllocated(LayoutAllocation)

Notifies the control of its layout allocation. Called after layout calculation, before painting.

void OnLayoutAllocated(LayoutAllocation allocation)

Parameters

allocation LayoutAllocation