Click or drag to resize

DynamicLayoutBeginCentered Method

Creates a new section where all controls will be centered together.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public void BeginCentered(
	Nullable<Padding> padding = null,
	Nullable<Size> spacing = null,
	Nullable<bool> xscale = null,
	Nullable<bool> yscale = null
)

Parameters

padding (Optional)
Type: SystemNullablePadding
Padding to apply around the controls, or null to use the DefaultPadding
spacing (Optional)
Type: SystemNullableSize
Spacing to apply to cells in the section, or null to use the DefaultSpacing
xscale (Optional)
Type: SystemNullableBoolean
Xscale of the vertical section
yscale (Optional)
Type: SystemNullableBoolean
Yscale of the vertical section
Remarks
This is useful when you want to create a section that groups controls which align themselves together but are centered in the parent. When finished adding controls to the centered section, call EndCentered. To center vertically, set yscale to true.
See Also