Class CollectionView
The CollectionView is a flexible and performant view for presenting lists of data using different layout specifications.
Inheritance
System.Object
CollectionView
Assembly: Tizen.UIExtensions.ElmSharp.dll
Syntax
public class CollectionView : ElmSharp.Box, ICollectionViewController
Constructors
CollectionView(EvasObject)
Initializes a new instance of the CarouselView class.
Declaration
public CollectionView(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
|
Properties
Adaptor
Gets or sets ItemAdaptor to adapt items source
Declaration
public ItemAdaptor Adaptor { get; set; }
Property Value
AllocatedSize
Declaration
protected ElmSharp.Size AllocatedSize { get; set; }
Property Value
Type |
Description |
ElmSharp.Size |
|
Gets or sets the focused item scroll position.
Declaration
public ScrollToPosition FocusedItemScrollPosition { get; set; }
Property Value
Gets or sets the horizontal scrollbar visible policy.
Declaration
public ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy { get; set; }
Property Value
Type |
Description |
ScrollBarVisiblePolicy |
|
LayoutManager
Gets or sets LayoutManager to organize position of item
Declaration
public ICollectionViewLayoutManager LayoutManager { get; set; }
Property Value
Declaration
protected ElmSharp.Scroller Scroller { get; }
Property Value
Type |
Description |
ElmSharp.Scroller |
|
SelectedItemIndex
Gets or sets the selected item index.
Declaration
public int SelectedItemIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
SelectionMode
Gets or sets a value that controls whether and how many items can be selected.
Declaration
public CollectionViewSelectionMode SelectionMode { get; set; }
Property Value
SnapPointsType
Gets or sets the SnapPointsType value.
Declaration
public SnapPointsType SnapPointsType { get; set; }
Property Value
Gets or sets the vertical scrollbar visible policy.
Declaration
public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get; set; }
Property Value
Type |
Description |
ScrollBarVisiblePolicy |
|
Methods
Declaration
protected virtual ElmSharp.Scroller CreateScroller(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
|
Returns
Type |
Description |
ElmSharp.Scroller |
|
CreateViewHolder()
Declaration
protected virtual ViewHolder CreateViewHolder()
Returns
ItemMeasureInvalidated(Int32)
Notify that item measure result is changed
Declaration
public void ItemMeasureInvalidated(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Scrolls the CollectionView to the index
Declaration
public void ScrollTo(int index, ScrollToPosition position = ScrollToPosition.MakeVisible, bool animate = true)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
Index of item
|
ScrollToPosition |
position |
How the item should be positioned on screen.
|
System.Boolean |
animate |
Whether or not the scroll should be animated.
|
Scrolls the CollectionView to the item
Declaration
public void ScrollTo(object item, ScrollToPosition position = ScrollToPosition.MakeVisible, bool animate = true)
Parameters
Type |
Name |
Description |
System.Object |
item |
Item to scroll
|
ScrollToPosition |
position |
How the item should be positioned on screen.
|
System.Boolean |
animate |
Whether or not the scroll should be animated.
|
Events
Event that is raised after a scroll completes.
Declaration
public event EventHandler<ItemsViewScrolledEventArgs> Scrolled
Event Type
Explicit Interface Implementations
ICollectionViewController.ContentSizeUpdated()
Declaration
void ICollectionViewController.ContentSizeUpdated()
ICollectionViewController.Count
Declaration
int ICollectionViewController.Count { get; }
Returns
Type |
Description |
System.Int32 |
|
ICollectionViewController.RealizeView(Int32)
Declaration
ViewHolder ICollectionViewController.RealizeView(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
ICollectionViewController.RequestLayoutItems()
Declaration
void ICollectionViewController.RequestLayoutItems()
ICollectionViewController.UnrealizeView(ViewHolder)
Declaration
void ICollectionViewController.UnrealizeView(ViewHolder view)
Parameters
Implements