unoplatform / uno.toolkit.ui

A set of custom controls for the WinUI and the Uno Platform not offered out of the box by WinUI, such as Card, TabBar, NavigationBar, etc.
https://platform.uno/
MIT License
84 stars 27 forks source link

Need a "selection behavior" for `RadioButtons` #1169

Open dr1rrb opened 5 months ago

dr1rrb commented 5 months ago

What would you like to be added:

On the model of https://github.com/unoplatform/uno.toolkit.ui/blob/main/src/Uno.Toolkit.UI/Behaviors/ItemsRepeaterExtensions.cs, we need a selection behavior to add support of ISelectionInfo for RadioButtons (which does not inherit from Selector).

Why is this needed:

To enable support of selection pattern of MVUX

For which Platform:

Anything else we need to know?

Should we have the same model as for the CommandExtension and have a single behavior for multiple controls?

Xiaoy312 commented 5 months ago

of the collection controls which ones supports ISelectionInfo natively, and which ones doesnt?