Oferv
6 years agoSuper Contributor
Expand a list item
Hi,
I want to select a random list from a list of few items and expand it by index.
I wrote a function to get the random list and select it but have some difficulties expanding it.
// Select random action from the actions list
ActionToSelect = Random(1, Aliases.CCM.MainFrame.ContentControl.StackPanel.Control2.ListBox.wItemCount)
Aliases.CCM.MainFrame.ContentControl.StackPanel.Control2.ListBox.ClickItem(ActionToSelect)
How can I expand the selected list item by index (Dblclick won't work here as the expanding should be perfomed from the expander, triangle icon in this case).
Thanks