Class ListItemWidgetController<T>
Recyclable widget controller for a list view item.
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class ListItemWidgetController<T> : RecyclableWidgetController
Type Parameters
| Name | Description |
|---|---|
| T | Any type, used as a data tag to assign to the list item. |
Properties
Callback
Gets or sets a callback to execute when
Declaration
public Action<T>? Callback { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<T> |
Data
Gets or sets a value of type T representing the list item's actual data value.
Declaration
public T Data { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Description
Gets or sets a text description of the list item.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Image
Gets or sets a RecyclableWidgetController instance that is displayed in the list item image slot.
Declaration
public RecyclableWidgetController? Image { get; set; }
Property Value
| Type | Description |
|---|---|
| RecyclableWidgetController |
Selected
Gets or sets a value indicating whether the list item is selected.
Declaration
public bool Selected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Title
Gets or sets the title of the list item.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Build(ContentWidget)
Declaration
public override void Build(ContentWidget destination)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentWidget | destination |
Overrides
Recycle()
Declaration
public override void Recycle()