Show / Hide Table of Contents

    Class CollectionView

    The CollectionView is a flexible and performant view for presenting lists of data using different layout specifications.

    Inheritance
    System.Object
    CollectionView
    CarouselView
    Implements
    ICollectionViewController
    Namespace: Tizen.UIExtensions.ElmSharp
    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
    Type Description
    ItemAdaptor

    AllocatedSize

    Declaration
    protected ElmSharp.Size AllocatedSize { get; set; }
    Property Value
    Type Description
    ElmSharp.Size

    FocusedItemScrollPosition

    Gets or sets the focused item scroll position.

    Declaration
    public ScrollToPosition FocusedItemScrollPosition { get; set; }
    Property Value
    Type Description
    ScrollToPosition

    HorizontalScrollBarVisiblePolicy

    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
    Type Description
    ICollectionViewLayoutManager

    Scroller

    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
    Type Description
    CollectionViewSelectionMode

    SnapPointsType

    Gets or sets the SnapPointsType value.

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

    VerticalScrollBarVisiblePolicy

    Gets or sets the vertical scrollbar visible policy.

    Declaration
    public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get; set; }
    Property Value
    Type Description
    ScrollBarVisiblePolicy

    Methods

    CreateScroller(EvasObject)

    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
    Type Description
    ViewHolder

    ItemMeasureInvalidated(Int32)

    Notify that item measure result is changed

    Declaration
    public void ItemMeasureInvalidated(int index)
    Parameters
    Type Name Description
    System.Int32 index

    ScrollTo(Int32, ScrollToPosition, Boolean)

    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.

    ScrollTo(Object, ScrollToPosition, Boolean)

    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

    Scrolled

    Event that is raised after a scroll completes.

    Declaration
    public event EventHandler<ItemsViewScrolledEventArgs> Scrolled
    Event Type
    Type Description
    System.EventHandler<ItemsViewScrolledEventArgs>

    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
    Type Description
    ViewHolder

    ICollectionViewController.RequestLayoutItems()

    Declaration
    void ICollectionViewController.RequestLayoutItems()

    ICollectionViewController.UnrealizeView(ViewHolder)

    Declaration
    void ICollectionViewController.UnrealizeView(ViewHolder view)
    Parameters
    Type Name Description
    ViewHolder view

    Implements

    ICollectionViewController
    Back to top Copyright © 2021 Samsung
    Generated by DocFX