Class RecyclerViewItem

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
9

This class provides a basic item for CollectionView.

C#
Copy
public class RecyclerViewItem : Control, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
Inheritance
System.Object
Tizen.NUI.Binding.Element
Tizen.NUI.Components.Control
RecyclerViewItem
Derived
Tizen.NUI.Components.DefaultGridItem
Tizen.NUI.Components.DefaultLinearItem
Tizen.NUI.Components.DefaultTitleItem
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

RecyclerViewItem()

Creates a new instance of RecyclerViewItem.

Declaration
C#
Copy
public RecyclerViewItem()
API Level: 9
View Source

RecyclerViewItem(String)

Creates a new instance of RecyclerViewItem with style.

Declaration
C#
Copy
public RecyclerViewItem(string style)
Parameters
Type Name Description
System.String style

Create RecyclerViewItem by special style defined in UX.

API Level: 9
View Source

RecyclerViewItem(RecyclerViewItemStyle)

Creates a new instance of a RecyclerViewItem with style.

Declaration
C#
Copy
public RecyclerViewItem(RecyclerViewItemStyle itemStyle)
Parameters
Type Name Description
RecyclerViewItemStyle itemStyle

Create RecyclerViewItem by style customized by user.

API Level: 9

Fields

View Source

IsEnabledProperty

Property of boolean Enable flag.

Declaration
C#
Copy
public static readonly BindableProperty IsEnabledProperty
Field Value
Type Description
Tizen.NUI.Binding.BindableProperty
API Level: 9
View Source

IsSelectableProperty

Property of boolean Selectable flag.

Declaration
C#
Copy
public static readonly BindableProperty IsSelectableProperty
Field Value
Type Description
Tizen.NUI.Binding.BindableProperty
API Level: 9
View Source

IsSelectedProperty

Property of boolean Selected flag.

Declaration
C#
Copy
public static readonly BindableProperty IsSelectedProperty
Field Value
Type Description
Tizen.NUI.Binding.BindableProperty
API Level: 9

Properties

View Source

IsEnabled

Flag to decide enabled state in RecyclerViewItem. Set enabled state false makes item untouchable and unfocusable.

Declaration
C#
Copy
public bool IsEnabled { get; set; }
Property Value
Type Description
Boolean
API Level: 9
View Source

IsSelectable

Flag to decide RecyclerViewItem can be selected or not.

Declaration
C#
Copy
public bool IsSelectable { get; set; }
Property Value
Type Description
Boolean
API Level: 9
View Source

IsSelected

Flag to decide selected state in RecyclerViewItem.

Declaration
C#
Copy
public bool IsSelected { get; set; }
Property Value
Type Description
Boolean
API Level: 9

Methods

View Source

ApplyStyle(ViewStyle)

Apply style to RecyclerViewItem.

Declaration
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle

The style to apply.

Overrides
API Level: 9
View Source

CreateViewStyle()

Get ViewItem style.

Declaration
C#
Copy
protected override ViewStyle CreateViewStyle()
Returns
Type Description
ViewStyle

The default ViewItem style.

Overrides
Tizen.NUI.Components.Control.CreateViewStyle()
API Level: 9
View Source

Dispose(DisposeTypes)

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
Tizen.NUI.Components.Control.Dispose(Tizen.NUI.DisposeTypes)
API Level: 9
View Source

OnClicked(ClickedEventArgs)

Called when the ViewItem is Clicked by a user

Declaration
C#
Copy
protected virtual void OnClicked(ClickedEventArgs eventArgs)
Parameters
Type Name Description
ClickedEventArgs eventArgs

The click information.

API Level: 9

Events

View Source

Clicked

An event for the RecyclerViewItem clicked signal which can be used to subscribe or unsubscribe the event handler provided by the user.

Declaration
C#
Copy
public event EventHandler<ClickedEventArgs> Clicked
Event Type
Type Description
System.EventHandler<ClickedEventArgs>
API Level: 9

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable