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
onLayoutLayoutRootThe layout root to draw the container on
namestringThe 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
childArrangableElementThe child being destroyed