This is a common problem.  Same in WPF as well.  My work around, for cases
where I desperately want radiobuttons, is the following.

1.  Create your radiobuttons,each with a different groupname.

2.  Bind each radiobutton to a different property and manually set the other
properties to false when one of the others is true.

 

After 6 months I fell for this trap again this morning (in a WPF app). I
called CancelEdit on an IEditableObject and everything in the UI reverted
except the radio buttons. After sticking some displays on the property
setter I saw it flipping back and forth between values and then I remembered
this thread in the Silverlight forum.

 

I found that putting a different GroupName on the radio buttons was
sufficient, no need to bind to different properties. I'm using a typical
Enum-RadioButton converter that you see all over the place.

 

Greg 

 

_______________________________________________
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to