<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: radiobuttons in a datatemplate in silverlight</title>
	<atom:link href="http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/</link>
	<description>deadly sharp lines, waves of sine, intersecting shapes with tweens and keysplines</description>
	<lastBuildDate>Sat, 10 Dec 2011 17:17:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ganesh</title>
		<link>http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/comment-page-1/#comment-8505</link>
		<dc:creator>Ganesh</dc:creator>
		<pubDate>Sun, 30 Oct 2011 04:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dragonshed.org/blog/?p=211#comment-8505</guid>
		<description>Hi,
    The solution will not work if you have two sets of radio buttons in that case the groupnames should be different. If you generating the controls dynamically give group name unique groupnames to the set then it will work.

Thanks,
Ganesh</description>
		<content:encoded><![CDATA[<p>Hi,<br />
    The solution will not work if you have two sets of radio buttons in that case the groupnames should be different. If you generating the controls dynamically give group name unique groupnames to the set then it will work.</p>
<p>Thanks,<br />
Ganesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praneeth</title>
		<link>http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/comment-page-1/#comment-8383</link>
		<dc:creator>Praneeth</dc:creator>
		<pubDate>Thu, 29 Sep 2011 13:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dragonshed.org/blog/?p=211#comment-8383</guid>
		<description>It dint work for me too.</description>
		<content:encoded><![CDATA[<p>It dint work for me too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/comment-page-1/#comment-7496</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Tue, 29 Mar 2011 19:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dragonshed.org/blog/?p=211#comment-7496</guid>
		<description>Hey Karim, thanks for this, unfortunately it hasn&#039;t solved a problem that I am having with Radiobuttons - if you change your sample to use two radiobutton lists instead of a radio button list and a toggle button list, it no longer works - you cannot select a radio button from each group.  Any ideas about how to solve that problem?
Thanks,
Bob</description>
		<content:encoded><![CDATA[<p>Hey Karim, thanks for this, unfortunately it hasn&#8217;t solved a problem that I am having with Radiobuttons &#8211; if you change your sample to use two radiobutton lists instead of a radio button list and a toggle button list, it no longer works &#8211; you cannot select a radio button from each group.  Any ideas about how to solve that problem?<br />
Thanks,<br />
Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mfbeast</title>
		<link>http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/comment-page-1/#comment-3449</link>
		<dc:creator>mfbeast</dc:creator>
		<pubDate>Wed, 10 Feb 2010 11:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dragonshed.org/blog/?p=211#comment-3449</guid>
		<description>Thanks for your post, that behavior for toggle buttons is just what i was looking for.

And a comment: the unobvious thing with toggle buttons is that you can untoggle it, and the whole group won&#039;t have any toggled buttons, and in case that&#039;s not the desired behavior the workaround would be an unchecked event handler:

private static void OnUnchecked(object sender, RoutedEventArgs e)
{
    ToggleButton btn = (ToggleButton)sender;
    btn.Checked -= OnChecked;
    btn.IsChecked = true;
    btn.Checked += OnChecked;            
}

and in UpdateRadioButtonGroup:
in the beginning:
    toggleButton.Unchecked += OnUnchecked;
near the unchecking of current checked button:
    target.Unchecked -= OnUnchecked;
    target.IsChecked = false;</description>
		<content:encoded><![CDATA[<p>Thanks for your post, that behavior for toggle buttons is just what i was looking for.</p>
<p>And a comment: the unobvious thing with toggle buttons is that you can untoggle it, and the whole group won&#8217;t have any toggled buttons, and in case that&#8217;s not the desired behavior the workaround would be an unchecked event handler:</p>
<p>private static void OnUnchecked(object sender, RoutedEventArgs e)<br />
{<br />
    ToggleButton btn = (ToggleButton)sender;<br />
    btn.Checked -= OnChecked;<br />
    btn.IsChecked = true;<br />
    btn.Checked += OnChecked;<br />
}</p>
<p>and in UpdateRadioButtonGroup:<br />
in the beginning:<br />
    toggleButton.Unchecked += OnUnchecked;<br />
near the unchecking of current checked button:<br />
    target.Unchecked -= OnUnchecked;<br />
    target.IsChecked = false;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

