I've added the ability for a UIA control to expand or collapse any child item (that implements the ExpandCollapsePattern. This allows you to use a SelectList with a TreeView control, since TreeView items implement the SelectionPattern and its children implement SelectionItemPattern just as a ComboBox control does.
At some point it might make sense to make a specific TreeView control that derives from SelectList, but currently SelectList has methods specific to a ComboBox control (#list_item_height, #scroll_to_item, #get_top_index, etc.).
I've added the ability for a UIA control to expand or collapse any child item (that implements the
ExpandCollapsePattern
. This allows you to use aSelectList
with aTreeView
control, sinceTreeView
items implement theSelectionPattern
and its children implementSelectionItemPattern
just as aComboBox
control does.At some point it might make sense to make a specific
TreeView
control that derives fromSelectList
, but currentlySelectList
has methods specific to aComboBox
control (#list_item_height
,#scroll_to_item
,#get_top_index
, etc.).