Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Add Orientation Property to RadioButtons #3501

Open
Marv51 opened this issue Oct 27, 2020 · 2 comments
Open

Proposal: Add Orientation Property to RadioButtons #3501

Marv51 opened this issue Oct 27, 2020 · 2 comments
Assignees
Labels
area-RadioButtons feature proposal New feature proposal team-Controls Issue for the Controls team

Comments

@Marv51
Copy link
Contributor

Marv51 commented Oct 27, 2020

Proposal: Add Orientation Property to RadioButtons

Summary

Currently RadioButtons are arranged vertically. With the MaxColumns property, we can create a grid of RadioButtons. However they are arranged like this:

| Item 1 | Item 3 |
| Item 2 | Item 4 |

RadioButtons with Orientation="Horizontal" would be arranged like this:
| Item 1 | Item 2 |
| Item 3 | Item 4 |

Rationale

This is a very common way to arrange RadioButtons.

There are two reasons to implement this property:

  1. Make a horizontal layout of RadioButtons trivial to do (no one should have to put MaxColumns="99" for such trivial layout)
  2. Enable more precise control over how RadioButtons are arranged

This could be addressed by #2084, with a WrapPanel. I feel however that this would still be worth implementing, for simplicity and to make the functionality more obvious for beginners.

@Marv51 Marv51 added the feature proposal New feature proposal label Oct 27, 2020
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Oct 27, 2020
@ranjeshj ranjeshj added area-RadioButtons team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Oct 27, 2020
@michael-hawker
Copy link
Collaborator

This would also make a simple re-style for #2310 a lot easier as well, though you can kind of trick it by setting MaxColumns very high, though the spacing based on the largest item is a bit weird. It'd be nice if the Layout was just exposed and modifiable more easily for control which use ItemsRepeater.

@Marv51
Copy link
Contributor Author

Marv51 commented Jul 19, 2023

Keep alive (re #8638)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-RadioButtons feature proposal New feature proposal team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants