Table of Contents

Class Container

Namespace
MagicUI.Core
Assembly
MagicUI.dll

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 LayoutRoot

The layout root to draw the container on

name string

The 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

ArrangableElement

Methods

HandleChildDestroyed(ArrangableElement)

Additional handling for when a child is being destroyed

public void HandleChildDestroyed(ArrangableElement child)

Parameters

child ArrangableElement

The child being destroyed