Class Container
Definition
- Assembly:
- Tizen.NUI.dll
The Container is an abstract class to be inherited from by classes that desire to have views added to them.
C#Copypublic abstract class Container : Animatable, INotifyPropertyChanged, IDisposable
- Inheritance
- Derived
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Properties
Declaration
C#Copypublic uint ChildCount { get; }
Property Value
Type | Description |
---|---|
uint | The number of children. |
Declaration
C#Copypublic List<View> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><View> |
Declaration
C#Copypublic Container Parent { get; }
Property Value
Type | Description |
---|---|
Container | The parent container. |
Methods
Declaration
C#Copypublic 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.
Declaration
C#Copypublic 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. |
Declaration
C#Copy[Obsolete("This has been deprecated in API9 and will be removed in API11. Use ChildCount property instead.")] public abstract uint GetChildCount()
Returns
Type | Description |
---|---|
uint | The number of children. |
Declaration
C#Copypublic abstract Container GetParent()
Returns
Type | Description |
---|---|
Container | The parent container. |
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
C#Copypublic abstract void Remove(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The view to remove |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable