Skip to main content

ListBoxItemHighlightable Class

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

A list box item that highlights its text and background when selected.

public class ListBoxItemHighlightable : ListBoxItem

Constructors

ListBoxItemHighlightable(string content, Font font, int margin, Media.Color backgroundSelectedColor, Media.Color foreColorSelectedColor, Media.Color foreColorUnselectColor)

public ListBoxItemHighlightable(string content, Font font, int margin, Media.Color backgroundSelectedColor, Media.Color foreColorSelectedColor, Media.Color foreColorUnselectColor) : base()

Creates a highlightable item with the given text and selected/unselected colors.

Methods

OnIsSelectedChanged(bool isSelected)

protected internal override void OnIsSelectedChanged(bool isSelected)

Updates the background and text color when the selected state changes.