Class TwoLineListItemWithIcon
A widget that behaves as a list view item with two lines of text and an area for an icon.
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class TwoLineListItemWithIcon : Widget, IFontFamilyProvider, IInspectable
Constructors
TwoLineListItemWithIcon()
Creates a new instance of the TwoLineListItemWithIcon widget.
Declaration
public TwoLineListItemWithIcon()
Properties
Icon
Gets a Box instance representing the slot used for the list item icon.
Declaration
public Box Icon { get; }
Property Value
Type | Description |
---|---|
Box |
Line1
Gets or sets the text shown on line 1 of the list ite, typically a title.
Declaration
public string Line1 { get; set; }
Property Value
Type | Description |
---|---|
string |
Line2
Gets or sets text to display on line 2 of the list item, typically a description.
Declaration
public string Line2 { get; set; }
Property Value
Type | Description |
---|---|
string |
Selected
Gets or sets a value indicating whether the list item is visually selected.
Declaration
public bool Selected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Events
Clicked
an event that fires when the list item is clicked.
Declaration
public event Action? Clicked
Event Type
Type | Description |
---|---|
Action |