Skip to main content

Class DockLayout

A layout that arranges child controls based on a docking position.

Assembly: MicroLayout.dll
View Source
Declaration
public class DockLayout : MicroLayout, IThemedControl, IControl

Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl

Properties

Padding

Gets or sets the padding around the controls in the layout.

View Source
Declaration
public int Padding { get; set; }

Methods

Add(IControl, DockPosition)

Adds a control to the layout at the specified docking position.

View Source
Declaration
public void Add(IControl control, DockLayout.DockPosition position)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControlcontrolThe control to add.
Meadow.Foundation.Graphics.MicroLayout.DockLayout.DockPositionpositionThe docking position for the control.

Remove(IControl)

Removes a control from the layout.

View Source
Declaration
public void Remove(IControl control)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControlcontrolThe control to remove.

OnDraw(MicroGraphics)

Draws the layout using the specified graphics context.

View Source
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphicsgraphicsThe graphics context used to render the layout.

Implements