Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
This class provides a basic item for CollectionView.
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
public RecyclerViewItem()
API Level: 9
View Source
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.
|
API Level: 9
View Source
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.
|
API Level: 9
Fields
View Source
IsEnabledProperty
Property of boolean Enable flag.
Declaration
public static readonly BindableProperty IsEnabledProperty
Field Value
API Level: 9
View Source
IsSelectableProperty
Property of boolean Selectable flag.
Declaration
public static readonly BindableProperty IsSelectableProperty
Field Value
API Level: 9
View Source
IsSelectedProperty
Property of boolean Selected flag.
Declaration
public static readonly BindableProperty IsSelectedProperty
Field Value
API Level: 9
Properties
View Source
Index
Data index which is binded to item.
Can access to data using this index.
Declaration
public int Index { get; }
Property Value
View Source
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
API Level: 9
Declaration
public bool IsFooter { get; set; }
Property Value
View Source
Boolean flag to check this item is group footer.
Declaration
public bool IsGroupFooter { get; set; }
Property Value
View Source
Boolean flag to check this item is group header.
Declaration
public bool IsGroupHeader { get; set; }
Property Value
Declaration
public bool IsHeader { get; set; }
Property Value
Declaration
public bool IsPressed { get; set; }
Property Value
Declaration
public bool IsRealized { get; }
Property Value
View Source
IsSelectable
Flag to decide RecyclerViewItem can be selected or not.
Declaration
public bool IsSelectable { get; set; }
Property Value
API Level: 9
View Source
IsSelected
Flag to decide selected state in RecyclerViewItem.
Declaration
public bool IsSelected { get; set; }
Property Value
API Level: 9
Declaration
public DataTemplate Template { get; }
Property Value
Methods
View Source
ApplyStyle(ViewStyle)
Apply style to RecyclerViewItem.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type |
Name |
Description |
ViewStyle |
viewStyle |
The style to apply.
|
Overrides
API Level: 9
Declaration
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
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
API Level: 9
View Source
HandleControlStateOnTouch(Touch)
The touch event handler for ControlState.
Please change ControlState value by touch state if needed.
Declaration
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type |
Name |
Description |
Touch |
touch |
|
Returns
Overrides
View Source
LayoutChild()
Layout child, it can be override.
Declaration
protected virtual void LayoutChild()
View Source
MeasureChild()
Measure child, it can be override.
Declaration
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
protected override void OnBindingContextChanged()
Overrides
View Source
OnClicked(ClickedEventArgs)
Called when the ViewItem is Clicked by a user
Declaration
protected virtual void OnClicked(ClickedEventArgs eventArgs)
Parameters
API Level: 9
View Source
OnControlStateChanged(View.ControlStateChangedEventArgs)
Called after the View's ControlStates changed.
Declaration
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Overrides
View Source
OnEnabled(Boolean)
Internal callback of enabled property changes.
Inherited view can override this method to implements enabled property changes.
Declaration
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
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
public override void OnFocusLost()
Overrides
Declaration
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
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
protected override void OnUpdate()
Overrides
View Source
UpdateContent()
Update the Content. it can be override.
Declaration
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
public event EventHandler<ClickedEventArgs> Clicked
Event Type
API Level: 9
Implements
Extension Methods