Interface ICollectionViewController
Interface to control CollectionView on internal modules these apis not open as CollectionView API
Namespace: Tizen.UIExtensions.ElmSharp
Assembly: Tizen.UIExtensions.ElmSharp.dll
Syntax
public interface ICollectionViewController
Properties
Count
The number of items.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ParentPosition
Parent position of CollectionView.
Declaration
Point ParentPosition { get; }
Property Value
Type | Description |
---|---|
Point |
Methods
ContentSizeUpdated()
Notify scroll canvas size was changed
Declaration
void ContentSizeUpdated()
GetItemSize()
Gets a item size.
Declaration
Size GetItemSize()
Returns
Type | Description |
---|---|
Size | Size of item |
GetItemSize(Int32, Int32)
Gets a item size with contstraint.
Declaration
Size GetItemSize(int widthConstraint, int heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | widthConstraint | A width size that could be reached as maximum. |
System.Int32 | heightConstraint | A height size that could be reached as maximum. |
Returns
Type | Description |
---|---|
Size | Size of item |
GetItemSize(Int32, Int32, Int32)
Gets a item size with contstraint.
Declaration
Size GetItemSize(int index, int widthConstraint, int heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of item to get a size |
System.Int32 | widthConstraint | A width size that could be reached as maximum. |
System.Int32 | heightConstraint | A height size that could be reached as maximum. |
Returns
Type | Description |
---|---|
Size | Size of item |
RealizeView(Int32)
Request realize a view, it create a view to represent a item.
Declaration
ViewHolder RealizeView(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index of item. |
Returns
Type | Description |
---|---|
ViewHolder | Realized view. |
RequestLayoutItems()
Request layouting items newly.
Declaration
void RequestLayoutItems()
UnrealizeView(ViewHolder)
Request unrealize a view, it remove a view from CollectionView.
Declaration
void UnrealizeView(ViewHolder view)
Parameters
Type | Name | Description |
---|---|---|
ViewHolder | view | A view to unrealize |