<?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>Wed, 01 Sep 2010 13:06:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Blogging To The Bank</title>
		<link>http://www.dragonshed.org/blog/2009/03/08/radiobuttons-in-a-datatemplate-in-silverlight/comment-page-1/#comment-5279</link>
		<dc:creator>Blogging To The Bank</dc:creator>
		<pubDate>Thu, 15 Jul 2010 08:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dragonshed.org/blog/?p=211#comment-5279</guid>
		<description>What you do is great ¨C but more frequent updates, please?</description>
		<content:encoded><![CDATA[<p>What you do is great ¨C but more frequent updates, please?</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>
