VirtualizingListBox Class
Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI
Large homogeneous lists: recycles a small pool of rows while preserving full scroll extent. Set ItemsSource to an IList (e.g. ArrayList); each item is shown via ToString().
public class VirtualizingListBox : Control, IDisposable
Constructors
VirtualizingListBox()
public VirtualizingListBox()
No description available.
Properties
ItemsSource
public IList ItemsSource { get; set; }
No description available.
ItemHeight
public int ItemHeight { get; set; }
Fixed row height in pixels (all rows use this for virtualization math).
SelectedIndex
public int SelectedIndex { get; set; }
The currently selected index. (inherited)
HorizontalOffset
public int HorizontalOffset { get; set; }
Horizontal offset of the scroll. (inherited)
VerticalOffset
public int VerticalOffset { get; set; }
Vertical offset of the scroll. (inherited)
Methods
MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)
protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)
Measurement override. Implement your size-to-content logic here. (inherited)
| Parameter | Type | Description |
|---|---|---|
availableWidth | int | Available size that parent can give to the child. May be MaxValue(when parent wants to measure to content). This is soft constraint. Child can return bigger size to indicate that it wants bigger space and hope that parent can throw in scrolling... |
availableHeight | int | |
desiredWidth | out int | |
desiredHeight | out int |
ArrangeOverride(int arrangeWidth, int arrangeHeight)
protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)
ArrangeOverride allows for the customization of the positioning of children. (inherited)
| Parameter | Type | Description |
|---|---|---|
arrangeWidth | int | |
arrangeHeight | int |
Dispose()
public void Dispose()
Releases buffered memory (the unmanaged firmware/application buffers). (inherited)
Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
Closes a response stream, if present. (inherited)
| Parameter | Type | Description |
|---|---|---|
disposing | bool | Not used. |
Events
SelectionChanged
public event SelectionChangedEventHandler SelectionChanged
No description available.