Class RecyclerViewItem
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
This class provides a basic item for CollectionView.
public class RecyclerViewItem : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectRecyclerViewItem
- Derived
- Implements
-
System.IDisposable
Constructors
View SourceRecyclerViewItem()
Creates a new instance of RecyclerViewItem.
Declaration
public RecyclerViewItem()
RecyclerViewItem(string)
Creates a new instance of RecyclerViewItem with style.
Declaration
public RecyclerViewItem(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Create RecyclerViewItem by special style defined in UX. |
RecyclerViewItem(RecyclerViewItemStyle)
Creates a new instance of a RecyclerViewItem with style.
Declaration
public RecyclerViewItem(RecyclerViewItemStyle itemStyle)
Parameters
Type | Name | Description |
---|---|---|
RecyclerViewItemStyle | itemStyle | Create RecyclerViewItem by style customized by user. |
Fields
View SourceIsEnabledProperty
Property of boolean Enable flag.
Declaration
public static readonly BindableProperty IsEnabledProperty
Field Value
Type | Description |
---|---|
BindableProperty |
IsSelectableProperty
Property of boolean Selectable flag.
Declaration
public static readonly BindableProperty IsSelectableProperty
Field Value
Type | Description |
---|---|
BindableProperty |
IsSelectedProperty
Property of boolean Selected flag.
Declaration
public static readonly BindableProperty IsSelectedProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceIndex
Data index which is binded to item. Can access to data using this index.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
int |
IsEnabled
Flag to decide enabled state in RecyclerViewItem. Set enabled state false makes item untouchable and unfocusable.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsFooter
Boolean flag to check this item is footer.
Declaration
public bool IsFooter { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsGroupFooter
Boolean flag to check this item is group footer.
Declaration
public bool IsGroupFooter { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsGroupHeader
Boolean flag to check this item is group header.
Declaration
public bool IsGroupHeader { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsHeader
Boolean flag to check this item is header.
Declaration
public bool IsHeader { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsPressed
State of Pressed.
Declaration
public bool IsPressed { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsRealized
State of Realization
Declaration
public bool IsRealized { get; }
Property Value
Type | Description |
---|---|
bool |
IsSelectable
Flag to decide RecyclerViewItem can be selected or not.
Declaration
public bool IsSelectable { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsSelected
Flag to decide selected state in RecyclerViewItem.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Template
DataTemplate of this view object
Declaration
public DataTemplate Template { get; }
Property Value
Type | Description |
---|---|
DataTemplate |
Methods
View SourceApplyStyle(ViewStyle)
Apply style to RecyclerViewItem.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceCreateViewStyle()
Get ViewItem style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
ViewStyle | The default ViewItem style. |
Overrides
View SourceDispose(DisposeTypes)
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
View SourceHandleControlStateOnTouch(Touch)
Declaration
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch |
Returns
Type | Description |
---|---|
bool |
Overrides
View SourceLayoutChild()
Layout child, it can be override.
Declaration
protected virtual void LayoutChild()
MeasureChild()
Measure child, it can be override.
Declaration
protected virtual void MeasureChild()
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()
Overrides
View SourceOnClicked(ClickedEventArgs)
Called when the ViewItem is Clicked by a user
Declaration
protected virtual void OnClicked(ClickedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ClickedEventArgs | eventArgs | The click information. |
OnControlStateChanged(ControlStateChangedEventArgs)
Declaration
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Type | Name | Description |
---|---|---|
View.ControlStateChangedEventArgs | controlStateChangedInfo |
Overrides
View SourceOnEnabled(bool)
Declaration
protected override void OnEnabled(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
bool | enabled |
Overrides
View SourceOnFocusGained()
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
public override void OnFocusGained()
Overrides
View SourceOnFocusLost()
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
public override void OnFocusLost()
Overrides
View SourceOnInitialize()
Initializes AT-SPI object.
Declaration
public override void OnInitialize()
Overrides
View SourceOnKey(Key)
Called after a key event is received by the view that has had its focus set.
Declaration
public override bool OnKey(Key key)
Parameters
Type | Name | Description |
---|---|---|
Key | key | The key event. |
Returns
Type | Description |
---|---|
bool | True if the key event should be consumed. |
Overrides
View SourceOnUpdate()
Called when the ViewItem need to be updated
Declaration
protected override void OnUpdate()
Overrides
View SourceUpdateContent()
Update the Content. it can be override.
Declaration
protected virtual void UpdateContent()
Events
View SourceClicked
An event for the RecyclerViewItem clicked signal which can be used to subscribe or unsubscribe the event handler provided by the user.
Declaration
public event EventHandler<ClickedEventArgs> Clicked
Event Type
Type | Description |
---|---|
EventHandler<><ClickedEventArgs> |