Skip to main content

ILayoutManager Interface

Definition

Namespace:Avalonia.Layout
Assembly:Avalonia.Base
Package:Avalonia

Manages measuring and arranging of controls.

public interface ILayoutManager

Implements: IDisposable

Methods

NameDescription
ExecuteInitialLayoutPassExecutes the initial layout pass on a layout root.
ExecuteLayoutPassExecutes a layout pass.
InvalidateArrangeNotifies the layout manager that a control requires an arrange.
InvalidateMeasureNotifies the layout manager that a control requires a measure.
RegisterEffectiveViewportListenerRegisters a control as wanting to receive effective viewport notifications.
UnregisterEffectiveViewportListenerRegisters a control as no longer wanting to receive effective viewport notifications.

ExecuteInitialLayoutPass Method

Executes the initial layout pass on a layout root.

public void ExecuteInitialLayoutPass()

Remarks

You should not usually need to call this method explictly, the layout root will call it to carry out the initial layout of the control.

ExecuteLayoutPass Method

Executes a layout pass.

public void ExecuteLayoutPass()

Remarks

You should not usually need to call this method explictly, the layout manager will schedule layout passes itself.

InvalidateArrange Method

Notifies the layout manager that a control requires an arrange.

public void InvalidateArrange(Avalonia.Layout.Layoutable control)

Parameters

control Avalonia.Layout.Layoutable

The control.

InvalidateMeasure Method

Notifies the layout manager that a control requires a measure.

public void InvalidateMeasure(Avalonia.Layout.Layoutable control)

Parameters

control Avalonia.Layout.Layoutable

The control.

RegisterEffectiveViewportListener Method

Registers a control as wanting to receive effective viewport notifications.

public void RegisterEffectiveViewportListener(Avalonia.Layout.Layoutable control)

Parameters

control Avalonia.Layout.Layoutable

The control.

UnregisterEffectiveViewportListener Method

Registers a control as no longer wanting to receive effective viewport notifications.

public void UnregisterEffectiveViewportListener(Avalonia.Layout.Layoutable control)

Parameters

control Avalonia.Layout.Layoutable

The control.

Events

NameDescription
LayoutUpdatedRaised when the layout manager completes a layout pass.

LayoutUpdated Event

Raised when the layout manager completes a layout pass.

public event EventHandler LayoutUpdated