Reputation: 40
When the checked property is true , the radio button is not checked in UWP. The radio buttons is not in the group. See the code below.
<StackPanel Orientation="Horizontal">
<RadioButton Content="1" IsChecked="True"/>
<RadioButton IsChecked="True"/>
</StackPanel>
You can see only the second radio button is checked.Why?
Upvotes: 0
Views: 652
Reputation: 130
Purpose of RadioButton is that only single item will be selected at one time when RadioButtons are group together. If you want multiple selection at a time you can use CheckBox instead on RadioButton.
Upvotes: 1
Reputation: 9501
Because you grouped them by putting them into the same container. From UWP Radio Button documentation:
Radio buttons work in groups. There are 2 ways you can group radio button controls:
Upvotes: 1