Working with the control
Most controls contain methods and properties for typical use cases. The items are identified by text or index.
listBox.Select("Banana") listBox.Select(2) tree.Expand("/Fruit/Banana")
Working with individual items, such as WPFListBoxItem, WPFTreeViewItem, or WPFMenuItem
For advanced use cases, use individual items. For example, use individual items for opening the context menu on a specific item in a list box, or clicking a certain position relative to an item.
Dim item as WPFListBoxItem = listBox.WPFListBoxItem("banana") item.OpenContextMenu()