Class Container

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    The Container is an abstract class to be inherited from by classes that desire to have views added to them.

    public abstract class Container : Animatable, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    Derived
    View
    Layer
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Fields

    View Source

    XamlStyleProperty

    XamlStyleProperty

    Declaration
    public static readonly BindableProperty XamlStyleProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    ChildCount

    Gets the number of children for this container. Read only

    Declaration
    public uint ChildCount { get; }
    Property Value
    Type Description
    uint

    The number of children.

    View Source

    Children

    Gets the list of children of Container.

    Declaration
    public List<View> Children { get; }
    Property Value
    Type Description
    List<><View>
    View Source

    Parent

    Gets the parent container. Read only

    Declaration
    public Container Parent { get; }
    Property Value
    Type Description
    Container

    The parent container.

    View Source

    XamlResources

    Declaration
    public ResourceDictionary XamlResources { get; set; }
    Property Value
    Type Description
    ResourceDictionary
    View Source

    XamlStyle

    Declaration
    public XamlStyle XamlStyle { get; set; }
    Property Value
    Type Description
    XamlStyle

    Methods

    View Source

    Add(View)

    Adds a child view to this Container.

    Declaration
    public abstract void Add(View view)
    Parameters
    Type Name Description
    View view

    The child view to add.

    Remarks

    If the child already has a parent, it will be removed from the old parent and reparented to this view. This may change child's position, color, scale, etc. as it now inherits them from this view.

    View Source

    CopyAndKeepXNameInstance(Container)

    Copy all properties, bindings. Copy children without xName from other container, copy all properties, bindings of children with xName.

    Declaration
    public void CopyAndKeepXNameInstance(Container other)
    Parameters
    Type Name Description
    Container other
    View Source

    DisposeRecursively()

    Dispose itself and all children recursively. We can call this even itself is disposed.

    Declaration
    public void DisposeRecursively()
    Remarks

    Note that Container.DisposeIncludeChildren() disposed only if it created by xaml.

    View Source

    GetChildAt(uint)

    Retrieves the child view by the index.

    Declaration
    public abstract View GetChildAt(uint index)
    Parameters
    Type Name Description
    uint index

    The index of the child to retrieve.

    Returns
    Type Description
    View

    The view for the given index or empty handle if children are not initialized.

    View Source

    GetChildCount()

    Gets the number of children for this container.

    Declaration
    public abstract UInt32 GetChildCount()
    Returns
    Type Description
    UInt32

    The number of children.

    View Source

    GetParent()

    Gets the parent of this container.

    Declaration
    public abstract Container GetParent()
    Returns
    Type Description
    Container

    The parent container.

    View Source

    OnBindingContextChanged()

    Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.

    Declaration
    protected override void OnBindingContextChanged()
    Overrides
    Element.OnBindingContextChanged()
    View Source

    Remove(View)

    Removes a child view from this view. If the view was not a child of this view, this is a no-op.

    Declaration
    public abstract void Remove(View view)
    Parameters
    Type Name Description
    View view

    The view to remove

    Explicit Interface Implementations

    View Source

    IResourcesProvider.IsResourcesCreated

    Declaration
    bool IResourcesProvider.IsResourcesCreated { get; }
    Returns
    Type Description
    bool

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX