Skip to main content

ListBox Class

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

No description available.

public class ListBox : ContentControl

Constructors

ListBox()

public ListBox()

No description available.

Properties

Items

public ListBoxItemCollection Items { get; }

No description available.

SelectedIndex

public int SelectedIndex { get; set; }

The currently selected index. (inherited)

SelectedItem

public ListBoxItem SelectedItem { get; set; }

No description available.

HorizontalOffset

public int HorizontalOffset { get; set; }

Horizontal offset of the scroll.

VerticalOffset

public int VerticalOffset { get; set; }

Vertical offset of the scroll.

ExtentHeight

public int ExtentHeight { get; }

Extent height of the scroll area.

ExtentWidth

public int ExtentWidth { get; }

Extent width of the scroll area.

ScrollingStyle

public ScrollingStyle ScrollingStyle { get; set; }

The scrolling style.

Methods

ScrollIntoView(ListBoxItem item)

public void ScrollIntoView(ListBoxItem item)

No description available.

ParameterTypeDescription
itemListBoxItem

OnButtonDown(GHIElectronics.TinyCLR.UI.Input.ButtonEventArgs e)

protected override void OnButtonDown(GHIElectronics.TinyCLR.UI.Input.ButtonEventArgs e)

An event reporting a button was pressed. (inherited)

ParameterTypeDescription
eGHIElectronics.TinyCLR.UI.Input.ButtonEventArgs

Events

Click

public event RoutedEventHandler Click

Fires when the user commits the current selection — either by tapping a ListBoxItem or by pressing HardwareButton.Select while the ListBox has focus. The event source is the committed ListBoxItem.

SelectionChanged

public event SelectionChangedEventHandler SelectionChanged

No description available.

ScrollChanged

public event ScrollChangedEventHandler ScrollChanged

Event handler if the scroll changes.