ILayoutManager Interface
Definition
Manages measuring and arranging of controls.
public interface ILayoutManager
Methods
| Name | Description |
|---|---|
| ExecuteInitialLayoutPass | Executes the initial layout pass on a layout root. |
| ExecuteLayoutPass | Executes a layout pass. |
| InvalidateArrange | Notifies the layout manager that a control requires an arrange. |
| InvalidateMeasure | Notifies the layout manager that a control requires a measure. |
| RegisterEffectiveViewportListener | Registers a control as wanting to receive effective viewport notifications. |
| UnregisterEffectiveViewportListener | Registers 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
| Name | Description |
|---|---|
| LayoutUpdated | Raised when the layout manager completes a layout pass. |
LayoutUpdated Event
Raised when the layout manager completes a layout pass.
public event EventHandler LayoutUpdated