Classes that Derive from the WPFItemsControl Class

Silk Test Workbench can interact with classes that derive from WPFItemsControl, such as WPFListBox, WPFTreeView, and WPFMenu, in two ways:
  • Working with the control

    Most controls contain methods and properties for typical use cases. The items are identified by text or index.

    For example:
    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.

    For example:
    Dim item as WPFListBoxItem = listBox.WPFListBoxItem("banana")
    item.OpenContextMenu()