I have 4 RadioButtons
in a UniformGrid
.
Initially they are all set to false
.
But once I click one of them, one stays true at all times.
Our requirement is that they all can be set to false.
I tried things like
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsChecked,
RelativeSource={RelativeSource Self}}" Value="True"/>
<Condition Binding="{Binding IsPressed,
RelativeSource={RelativeSource Self}}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="IsChecked" Value="False"/>
</MultiDataTrigger>
But it's not working. I know I can use a ToggleButton
, but only one of my RadioButtons
can be checked at a time.
Is this even possible?