<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tip of the Day - Routed Events</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx</link><description>Source Code A routed event is is bubbled up the user interface tree whether or not it is handled by the object that receives the event. For example, if we return to a previous example in which we had a button within which were three sub-controls, the</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>W&amp;ouml;chentliche Rundablage: ASP.NET MVC, Silverlight 2, LINQ&amp;#8230; | Code-Inside Blog</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#38152</link><pubDate>Mon, 17 Mar 2008 20:11:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38152</guid><dc:creator>Wöchentliche Rundablage: ASP.NET MVC, Silverlight 2, LINQ… | Code-Inside Blog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;W&amp;amp;ouml;chentliche Rundablage: ASP.NET MVC, Silverlight 2, LINQ&amp;amp;#8230; | Code-Inside Blog&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=38152" width="1" height="1"&gt;</description></item><item><title>Source for the Tip of the Day</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#37832</link><pubDate>Mon, 17 Mar 2008 01:41:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37832</guid><dc:creator>Blogs</dc:creator><description>&lt;p&gt;The Tip of the Day occasionally will delve deep into code (other days it will just provide a bit of useful&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=37832" width="1" height="1"&gt;</description></item><item><title>Source for the Tip of the Day</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#37829</link><pubDate>Mon, 17 Mar 2008 01:41:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37829</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;The Tip of the Day occasionally will delve deep into code (other days it will just provide a bit of useful&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=37829" width="1" height="1"&gt;</description></item><item><title>Source for the Tip of the Day</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#37822</link><pubDate>Mon, 17 Mar 2008 01:14:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37822</guid><dc:creator>Jesse Liberty - Silverlight Geek</dc:creator><description>&lt;p&gt;The Tip of the Day occasionally will delve deep into code (other days it will just provide a bit of useful&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=37822" width="1" height="1"&gt;</description></item><item><title>Dew Drop - March 11, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#35914</link><pubDate>Tue, 11 Mar 2008 12:36:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:35914</guid><dc:creator>Dew Drop - March 11, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop - March 11, 2008 | Alvin Ashcraft's Morning Dew&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=35914" width="1" height="1"&gt;</description></item><item><title>re: Tip of the Day - Routed Events</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#35733</link><pubDate>Tue, 11 Mar 2008 02:59:41 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:35733</guid><dc:creator>BenHayat</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt;What if you want to avoid this from happening? Then you use the &amp;quot;e.Handled = true;&amp;quot; on the EventArgs in the events?&lt;/p&gt;
&lt;p&gt;Then what will happen? The event will start bubbling?&lt;/p&gt;
&lt;p&gt;I tryed this out, only a very wuick test, so maybe I did something wrong, but it didn't seemed to work, so that's why I'm asking here.&amp;lt;&amp;lt;&lt;/p&gt;
&lt;p&gt;In the TOP event handler, you now need to check if &amp;quot;!e.Handled==true&amp;quot; then perform something else if it is handled by lower event handlers (e.Handled==true) then don't do anything. So a check must be added now!&lt;/p&gt;
&lt;p&gt;..Ben&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=35733" width="1" height="1"&gt;</description></item><item><title>re: Tip of the Day - Routed Events</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#35705</link><pubDate>Tue, 11 Mar 2008 00:59:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:35705</guid><dc:creator>Bydia3</dc:creator><description>&lt;p&gt;Can I catch an event at the root of the tree and still know what was the original object the event started on like in html? &amp;nbsp;Why? I'd like to have a method handle all my events rather than have to wire-up every object that needs it.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=35705" width="1" height="1"&gt;</description></item><item><title>re: Tip of the Day - Routed Events</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#35644</link><pubDate>Mon, 10 Mar 2008 20:45:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:35644</guid><dc:creator>Qbus</dc:creator><description>&lt;p&gt;Nice illutration of this event-bubbling :)&lt;/p&gt;
&lt;p&gt;What if you want to avoid this from happening? Then you use the &amp;quot;e.Handled = true;&amp;quot; on the EventArgs in the events?&lt;/p&gt;
&lt;p&gt;Then what will happen? The event will start bubbling?&lt;/p&gt;
&lt;p&gt;I tryed this out, only a very wuick test, so maybe I did something wrong, but it didn't seemed to work, so that's why I'm asking here.&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=35644" width="1" height="1"&gt;</description></item><item><title>re: Tip of the Day - Routed Events</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/03/10/tip-of-the-day-routed-events.aspx#35520</link><pubDate>Mon, 10 Mar 2008 15:21:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:35520</guid><dc:creator>wisecarver</dc:creator><description>&lt;p&gt;Thanks Jesse...&lt;/p&gt;
&lt;p&gt;Love the way the ListBox has properties for the Grid. ;-)&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=35520" width="1" height="1"&gt;</description></item></channel></rss>