Class RecyclerViewItem
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
This class provides a basic item for CollectionView.
public class RecyclerViewItem : Control, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlRecyclerViewItem
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.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 |
---|---|
Tizen.NUI.Binding.BindableProperty |
IsSelectableProperty
Property of boolean Selectable flag.
Declaration
public static readonly BindableProperty IsSelectableProperty
Field Value
Type | Description |
---|---|
Tizen.NUI.Binding.BindableProperty |
IsSelectedProperty
Property of boolean Selected flag.
Declaration
public static readonly BindableProperty IsSelectedProperty
Field Value
Type | Description |
---|---|
Tizen.NUI.Binding.BindableProperty |
Properties
View SourceIsEnabled
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 |
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 |
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
Dispose(DisposeTypes)
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
OnClicked(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. |
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 |
---|---|
System.EventHandler<TEventArgs><ClickedEventArgs> |