Skip to content

ui::TwoWayBinding

Header: winui/core/Property.hpp.

template <typename T> class TwoWayBinding

Derives from ui::Binding< T >.

What bind() of a non-const Property returns: a Binding that writes back. It converts to every field a Binding<T> does, except an editable field that can be unset (a TwoWayField of std::optional<T>). Nothing names it; a binding kept in a variable is auto or a Binding<T>.