.NET 4.0 Databinding radiobuttons to a bool

Apr 19, 2011 at 4:55 PM
Edited Apr 19, 2011 at 5:03 PM

<!--Directed radio button-->

My understanding is that the .NET 4.0 has fixed databinding of radiobuttons. This has been a sinkhole in terms of time. Can someone
please show me how to databind two radiobuttons to a bool using 4.0...I have tried so many different permutations (some work for awhile but eventually stop).
I have tried giving them different groupnames, but giving them the same BindingGroupName in the Binding statement...Doesn't fly...I would
really appeciate some help! Thanks!!!!  
<RadioButton                      
                Content="General"
                GroupName="Foo"
                IsChecked="{Binding Path=IsDirectedTask, Converter={StaticResource OppositeBoolConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"                 
                />
  <RadioButton                                                      
                Content="Direct"
                GroupName="Foo2"
                IsChecked="{Binding Path=IsDirectedTask, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                />
Apr 21, 2011 at 1:16 PM

Moved to WPF Site.