Skip to content

ui::SelectionProvider

Header: winui/ui/Automation.hpp.

The Selection pattern: a container whose entries are SelectionItems (a list, a Carousel). Implement every member.

selected_items

virtual void selected_items(std::vector<Element*>& out) const = 0

Appends the selected entries' nodes to out. Only entries that exist as nodes can be reported, so a virtualizing list lists the selected entries it has realized.

can_select_multiple

virtual bool can_select_multiple() const = 0

Whether more than one entry can be selected at once.

selection_required

virtual bool selection_required() const = 0

Whether the control always keeps one entry selected.

~SelectionProvider

~SelectionProvider() = default