Class Container
Root class for an arrangable element with a single child
public abstract class Container : ArrangableElement, ILayoutParent
- Inheritance
-
Container
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Container(LayoutRoot, string)
Creates a container
public Container(LayoutRoot onLayout, string name = "New Container")
Parameters
onLayout
LayoutRootThe layout root to draw the container on
name
stringThe name of the container
Properties
Child
The child of this container.Replacing or removing the child will destroy it.
public ArrangableElement? Child { get; set; }
Property Value
Methods
HandleChildDestroyed(ArrangableElement)
Additional handling for when a child is being destroyed
public void HandleChildDestroyed(ArrangableElement child)
Parameters
child
ArrangableElementThe child being destroyed