Skip to content

ui::ChoiceBinding

Header: winui/core/Property.hpp.

Derives from ui::Binding< std::optional< std::size_t > >.

What bind_choice() returns: a two-way binding of an index onto a property holding one of a list of values. It goes into any index field, one that can show no selection (a ListView's selected_index) and one that always shows one (a Sections control's). Nothing names it; see bind_choice().