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, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Derived
Implements

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
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
BindableProperty
API Level: 9
View Source

IsSelectableProperty

Property of boolean Selectable flag.

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

IsSelectedProperty

Property of boolean Selected flag.

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

Properties

View Source

Index

Data index which is binded to item. Can access to data using this index.

Declaration
C#
Copy
public int Index { get; }
Property Value
Type Description
Int32
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

IsFooter

Boolean flag to check this item is footer.

Declaration
C#
Copy
public bool IsFooter { get; set; }
Property Value
Type Description
Boolean
View Source

IsGroupFooter

Boolean flag to check this item is group footer.

Declaration
C#
Copy
public bool IsGroupFooter { get; set; }
Property Value
Type Description
Boolean
View Source

IsGroupHeader

Boolean flag to check this item is group header.

Declaration
C#
Copy
public bool IsGroupHeader { get; set; }
Property Value
Type Description
Boolean
View Source

IsHeader

Boolean flag to check this item is header.

Declaration
C#
Copy
public bool IsHeader { get; set; }
Property Value
Type Description
Boolean
View Source

IsPressed

State of Pressed.

Declaration
C#
Copy
public bool IsPressed { get; set; }
Property Value
Type Description
Boolean
View Source

IsRealized

State of Realization

Declaration
C#
Copy
public bool IsRealized { get; }
Property Value
Type Description
Boolean
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
View Source

Template

DataTemplate of this view object

Declaration
C#
Copy
public DataTemplate Template { get; }
Property Value
Type Description
DataTemplate

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
API Level: 9
View Source

Dispose(DisposeTypes)

Dispose Control and all children on it.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

Dispose type.

Overrides
API Level: 9
View Source

HandleControlStateOnTouch(Touch)

The touch event handler for ControlState. Please change ControlState value by touch state if needed.

Declaration
C#
Copy
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type Name Description
Touch touch
Returns
Type Description
Boolean
Overrides
View Source

LayoutChild()

Layout child, it can be override.

Declaration
C#
Copy
protected virtual void LayoutChild()
View Source

MeasureChild()

Measure child, it can be override.

Declaration
C#
Copy
protected virtual void MeasureChild()
View Source

OnBindingContextChanged()

Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.

Declaration
C#
Copy
protected override void OnBindingContextChanged()
Overrides
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
View Source

OnControlStateChanged(View.ControlStateChangedEventArgs)

Called after the View's ControlStates changed.

Declaration
C#
Copy
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Type Name Description
View.ControlStateChangedEventArgs controlStateChangedInfo

The information including state changed variables.

Overrides
View Source

OnEnabled(Boolean)

Internal callback of enabled property changes. Inherited view can override this method to implements enabled property changes.

Declaration
C#
Copy
protected override void OnEnabled(bool enabled)
Parameters
Type Name Description
Boolean enabled
Overrides
View Source

OnFocusGained()

Called when the control gain key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is gained.

Declaration
C#
Copy
public override void OnFocusGained()
Overrides
View Source

OnFocusLost()

Called when the control loses key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is lost.

Declaration
C#
Copy
public override void OnFocusLost()
Overrides
View Source

OnInitialize()

Initializes AT-SPI object.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
View Source

OnKey(Key)

Called after a key event is received by the view that has had its focus set.

Declaration
C#
Copy
public override bool OnKey(Key key)
Parameters
Type Name Description
Key key

The key event.

Returns
Type Description
Boolean

True if the key event should be consumed.

Overrides
View Source

OnUpdate()

Called when the ViewItem need to be updated

Declaration
C#
Copy
protected override void OnUpdate()
Overrides
View Source

UpdateContent()

Update the Content. it can be override.

Declaration
C#
Copy
protected virtual void UpdateContent()

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
EventHandler<ClickedEventArgs>
API Level: 9

Implements

Extension Methods