Class Container

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    It inherits Widget. The Container is an abstract class. The other class inherits it to elementary, which is about displaying its widgets in a nice layout.

    public abstract class Container : Widget, IAccessibleObject
    Inheritance
    object
    EvasObject
    AccessibleObject
    Widget
    Container
    Derived
    Box
    Box
    Box
    Box
    Box
    Box
    Box
    Box
    Box
    Layout
    Layout
    Layout
    Layout
    Layout
    Layout
    Layout
    Layout
    Layout
    Table
    Table
    Table
    Table
    Table
    Table
    Table
    Table
    Table
    Implements
    IAccessibleObject

    Constructors

    View Source

    Container()

    Creates and initializes a new instance of the Container class.

    Declaration
    protected Container()
    View Source

    Container(EvasObject)

    Creates and initializes a new instance of the class, which inherit from the Container.

    Declaration
    protected Container(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    The parent is a given object, which will be attached by the Container as a child. It's EvasObject type.

    Properties

    View Source

    BackgroundColor

    Sets the background color of a given Container.

    Declaration
    public override Color BackgroundColor { set; }
    Property Value
    Type Description
    Color
    Overrides
    Widget.BackgroundColor
    View Source

    Children

    Gets the collection of a child EvasObject of the Container.

    Declaration
    protected IEnumerable<EvasObject> Children { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<T><EvasObject>

    Methods

    View Source

    AddChild(EvasObject)

    Add the EvasObject object as a child of the Container.

    Declaration
    protected void AddChild(EvasObject obj)
    Parameters
    Type Name Description
    EvasObject obj

    The EvasObject object to be added.

    View Source

    ClearChildren()

    Clears all the children of the Container.

    Declaration
    protected void ClearChildren()
    View Source

    RemoveChild(EvasObject)

    Removes the EvasObject object as a child of the Container.

    Declaration
    protected void RemoveChild(EvasObject obj)
    Parameters
    Type Name Description
    EvasObject obj

    The EvasObject object to be removed.

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Deactivate(EvasObject)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX