Skip to main content

ListBoxItem Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Controls

A single selectable item within a ListBox.

public class ListBoxItem : ContentControl

Properties​

IsSelected​

public bool IsSelected { get; }

True when this item is the list's selected item.

IsSelectable​

public bool IsSelectable { get; set; }

Whether this item can be selected.

Methods​

OnIsSelectedChanged(bool isSelected)​

protected internal virtual void OnIsSelectedChanged(bool isSelected)

Called when this item's selected state changes.

OnTouchUp(TouchEventArgs e)​

protected override void OnTouchUp(TouchEventArgs e)

Handles touch release; selects this item and raises the list's Click.