Class RecyclerView
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
A View that serves as a base class for views that contain a templated list of items.
public abstract class RecyclerView : ScrollableBase, INotifyPropertyChanged, IDisposable
- Inheritance
-
BindableObjectElementControlRecyclerView
- Derived
- Implements
Constructors
View SourceRecyclerView()
Base Constructor
Declaration
public RecyclerView()
Properties
View SourceItemTemplate
DataTemplate for items.
Declaration
public virtual DataTemplate ItemTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| DataTemplate |
ItemsSource
Item's source data.
Declaration
public virtual IEnumerable ItemsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable |
Methods
View SourceOnRelayout(Vector2, RelayoutContainer)
Called after the size negotiation has been finished for this control.
The control is expected to assign this given size to itself or its children.
Should be overridden by derived classes if they need to layout views differently after certain operations like add or remove views, resize, or after changing specific properties.
As this function is called from inside the size negotiation algorithm, you cannot call RequestRelayout (the call would just be ignored).
Declaration
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | size | The allocated size. |
| RelayoutContainer | container | The control should add views to this container that it is not able to allocate a size for. |
Overrides
View SourceOnScrolling(object, ScrollEventArgs)
On scroll event callback.
Declaration
protected virtual void OnScrolling(object source, ScrollEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| object | source | |
| ScrollEventArgs | args |