Show / Hide Table of Contents

    Class CollectionView

    A View that contain a templated list of items.

    Inheritance
    System.Object
    CollectionView
    Implements
    ICollectionViewController
    Namespace: Tizen.UIExtensions.NUI
    Assembly: Tizen.UIExtensions.NUI.dll
    Syntax
    public class CollectionView : View, ICollectionViewController

    Constructors

    CollectionView()

    Initializes a new instance of the CollectionView class.

    Declaration
    public CollectionView()

    Properties

    Adaptor

    Gets or sets ItemAdaptor to adapt items source

    Declaration
    public ItemAdaptor Adaptor { get; set; }
    Property Value
    Type Description
    ItemAdaptor

    AllocatedSize

    A size of allocated by Layout, it become viewport size on scrolling

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

    Count

    The number of items on CollectionView

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    LayoutManager

    Gets or sets LayoutManager to organize position of item

    Declaration
    public ICollectionViewLayoutManager LayoutManager { get; set; }
    Property Value
    Type Description
    ICollectionViewLayoutManager

    ScrollCanvasSize

    A size of scrolling area

    Declaration
    public Size ScrollCanvasSize { get; }
    Property Value
    Type Description
    Size

    ScrollView

    Gets a ScrollView instance that used in CollectionView

    Declaration
    public ScrollableBase ScrollView { get; }
    Property Value
    Type Description
    ScrollableBase

    SelectedItems

    Selected items

    Declaration
    public IEnumerable<int> SelectedItems { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<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

    Methods

    CreateScrollView()

    Create a ScrollView to use in CollectionView

    Declaration
    protected virtual ScrollableBase CreateScrollView()
    Returns
    Type Description
    ScrollableBase

    A ScrollView instance

    CreateViewHolder()

    Create a ViewHolder, override it to customzie a decoration of view

    Declaration
    protected virtual ViewHolder CreateViewHolder()
    Returns
    Type Description
    ViewHolder

    A ViewHolder instance

    InitializationComponent()

    Initialize internal components, such as ScrollView

    Declaration
    protected virtual void InitializationComponent()

    RequestItemSelect(Int32)

    Request item selection

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

    Index of item

    RequestItemUnselect(Int32)

    Request item unselection

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

    Index of item

    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<CollectionViewScrolledEventArgs> Scrolled
    Event Type
    Type Description
    System.EventHandler<CollectionViewScrolledEventArgs>

    Explicit Interface Implementations

    ICollectionViewController.ContentSizeUpdated()

    Declaration
    void ICollectionViewController.ContentSizeUpdated()

    ICollectionViewController.GetItemSize()

    Declaration
    Size ICollectionViewController.GetItemSize()
    Returns
    Type Description
    Size

    ICollectionViewController.GetItemSize(Double, Double)

    Declaration
    Size ICollectionViewController.GetItemSize(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint
    System.Double heightConstraint
    Returns
    Type Description
    Size

    ICollectionViewController.GetItemSize(Int32, Double, Double)

    Declaration
    Size ICollectionViewController.GetItemSize(int index, double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Int32 index
    System.Double widthConstraint
    System.Double heightConstraint
    Returns
    Type Description
    Size

    ICollectionViewController.ItemMeasureInvalidated(Int32)

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

    ICollectionViewController.RealizeView(Int32)

    Declaration
    ViewHolder ICollectionViewController.RealizeView(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    ViewHolder

    ICollectionViewController.RequestItemSelect(Int32)

    Declaration
    void ICollectionViewController.RequestItemSelect(int index)
    Parameters
    Type Name Description
    System.Int32 index

    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