ControlsContainer - SirePi/duality-ui GitHub Wiki

A ControlContainer is a Control in charge of performing the layout of its children. Derives from Control. Both CompositeControls and ControlsContainers implment ILayout interface, which exposes a

  • Property IsPassthrough property that defines if "empty" areas of the Control should let the mouse click events pass through to the lower UIs, or not.

In addition to the Control's base properties and delegates, it also exposes:

  • Property Margin - A Border object that defines the margin of the ControlContainer.
  • Property ChildrenArea - Readonly - returns the area of the ControlContainer available for children Controls.

In order to add or remove children from the ControlContainer, the following methods are available:

  • Method Add - Append a Control to the ControlContainer's children list.
  • Method Remove - Remove a Control from the ControlContainer's children list.

Both Add and Remove return the ControlContainer itself, so that method chaining can be performed.