Click or drag to resize

ContainerSetParent Method

Sets the parent of the specified child to this container

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
protected void SetParent(
	Control child,
	Action assign = null,
	Control previousChild = null
)

Parameters

child
Type: Eto.FormsControl
Child to set the parent
assign (Optional)
Type: SystemAction
Method to assign the child to the handler
previousChild (Optional)
Type: Eto.FormsControl
Previous child that the new child is replacing.

Return Value

Type: 
true, if parent was set, false otherwise.
Remarks
This is used by container authors to set the parent of a child before it is added to the underlying platform control. The assign parameter should call the handler method to add the child to the parent.
See Also