<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Mister Goodcat</title>
        <link>http://geekswithblogs.net/MisterGoodcat/Default.aspx</link>
        <description>Purrfect software since 1882</description>
        <language>en-US</language>
        <copyright>MisterGoodcat</copyright>
        <managingEditor>kuhpe@h-net.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Mister Goodcat</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/MisterGoodcat/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Silverlight 3 GDR 1 (3.0.40723.0)</title>
            <category>Silverlight</category>
            <link>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/30/silverlight-3-gdr-1-3.0.40723.0.aspx</link>
            <description>This evening, I was presented with an update to Silverlight by Microsoft Update ("Update for Microsoft Silverlight (KB970363)"). The included text sounded more than a general feature description of Silverlight 3 than a change log:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-style: italic;"&gt;This update to Silverlight improves security and reliability, enhances graphical performance and creative effects, expands the range of supported media formats, broadens support for rich internet applications, and enables Silverlight applications to run outside of the browser.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
The provided link also did not reveal any information on what really has changed by this silent release. After looking around the web (there do not seem to be any release notes), it seems like the only thing that has changed is a buffering issue with wmv streams. See &lt;a href="http://betaforums.silverlight.net/forums/t/115536.aspx"&gt;the answer&lt;/a&gt; from Jimmy Lewis in the Silverlight forums as well as &lt;a href="http://arstechnica.com/microsoft/news/2009/07/silverlight-build-30407230-fixes-media-issue.ars"&gt;an article&lt;/a&gt; at ars technica.&lt;br /&gt;
&lt;br /&gt;
I wish Microsoft would also provide official change logs for every release.&lt;br /&gt;
&lt;br /&gt;
Btw.: if you are a Silverlight developer, you have to install the developer edition instead of the normal runtime. You can get the 40723 (GDR1) release here: &lt;a href="http://go2.microsoft.com/fwlink/?LinkID=150228"&gt;http://go2.microsoft.com/fwlink/?LinkID=150228&lt;/a&gt; - you can check if you're using the latest version by following &lt;a href="http://www.microsoft.com/silverlight/get-started/install/default.aspx"&gt;this link&lt;/a&gt; (restart your browser after updating first).&lt;br /&gt;
&lt;br /&gt;
-&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133819"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133819" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/MisterGoodcat/aggbug/133819.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>MisterGoodcat</dc:creator>
            <guid>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/30/silverlight-3-gdr-1-3.0.40723.0.aspx</guid>
            <pubDate>Thu, 30 Jul 2009 19:52:13 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/MisterGoodcat/comments/133819.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/30/silverlight-3-gdr-1-3.0.40723.0.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/MisterGoodcat/comments/commentRss/133819.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Breaking changes in Silverlight's navigation framework</title>
            <category>Silverlight</category>
            <link>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/14/breaking-changes-in-silverlights-navigation-framework.aspx</link>
            <description>&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;Today I was working with a small Silverlight application that is using the new navigation feature. Basically I adapted what Tim Heuer (thank you for your great videos and posts!) shows in his tutorial &lt;a href="http://silverlight.net/learn/learnvideo.aspx?video=187319"&gt;here&lt;/a&gt;. Apparently that sample has not been updated for the final version of Silverlight 3. When you watch that video and download the sample code, you'll notice that although it will compile under Silverlight 3 RTM, running it will result in a white screen. In Firefox that is -- curiously enough IE partly shows the sample, but it's not working. Unfortunately, you don't receive any runtime exceptions, even with the debugger attached. In the error console however, the following Java Script exception is logged:&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Error: Unhandled Error in Silverlight Application&lt;/span&gt;&lt;br style="font-weight: bold;" /&gt;
&lt;span style="font-weight: bold;"&gt;Code: 4004  &lt;/span&gt;&lt;br style="font-weight: bold;" /&gt;
&lt;span style="font-weight: bold;"&gt;Category: ManagedRuntimeError      &lt;/span&gt;&lt;br style="font-weight: bold;" /&gt;
&lt;span style="font-weight: bold;"&gt;Message: System.ArgumentException: Navigation is only supported to relative URIs that are fragments, or begin with '/', or which contain ';component/'.&lt;/span&gt;&lt;br style="font-weight: bold;" /&gt;
&lt;span style="font-weight: bold;"&gt;Parameter name: uri&lt;/span&gt;&lt;br style="font-weight: bold;" /&gt;
&lt;span style="font-weight: bold;"&gt;[...]&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;&lt;br /&gt;
So the first thing is to change all the URIs used in the sample and add a preceding slash to them. In particular, you need to change the Tag properties of the HyperlinkButtons in MainPage.xaml, the parameter of the call to Navigations.Navigate(...) in CustomerList.xaml.cs, and of course the mappings defined in the resources of App.xaml (hint: you could also use the NavigateUri property of the hyperlink buttons instead of Tim's approach, which makes the sample even easier). &lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navcore&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;UriMapper&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; x&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="uriMapper"&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navcore&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;UriMapping&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Uri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Home"&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; MappedUri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Views/HomePage.xaml" /&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navcore&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;UriMapping&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Uri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/About-Us"&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; MappedUri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Views/AboutPage.xaml" /&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navcore&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;UriMapping&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Uri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Customers"&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; MappedUri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Views/CustomerList.xaml" /&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navcore&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;UriMapping&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Uri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Customer/{id}"&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;
        MappedUri&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="/Views/CustomerDetail.xaml?id={id}" /&amp;gt;&lt;br /&gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navcore&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;UriMapper&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="1" style="color: rgb(0, 0, 0);"&gt;(Precede all occurrences of the URIs with a slash, exemplarily shown for the UriMapper here)&lt;/font&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;After that, you'll receive a different Java Script exception:&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma; font-weight: bold;"&gt;&lt;font size="2"&gt;Error: Unhandled Error in Silverlight Application No XAML was found at the location '/Home'.&lt;br /&gt;
[...]&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;The reason for that is a bit more tricky to find out. In the beta version of Silverlight 3, it was sufficient to provide an UriMapper with a certain key (e.g. in the App's resources), and that magically was used throughout the application. Silverlight 3 RTM requires the UriMapper property of a navigation frame to be set explicitly. You can bind that property (in MainPage.xaml) to the static resource defined in App.xaml:&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;navigation&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;Frame&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; x&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;:&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="MainFrame"&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; UriMapper&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="{&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;StaticResource&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; uriMapper&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;}"&lt;br /&gt;
&lt;/span&gt; &lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt; Now the application basically is working: you can navigate through the pages, and all content is displayed correctly. You can also use the corresponding methods to go back and forward programmatically. However, you'll notice that the navigation buttons of the browser won't work. The address bar won't be updated also, and neither will deep linking work. Why is that? Well, it took me four hours (shame on me?) to find out why, and that evil little detail is the reason I've decided to write this post after all.&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;I started reading through the &lt;a href="http://msdn.microsoft.com/en-us/library/cc645049%28VS.95%29.aspx"&gt;breaking changes document&lt;/a&gt;, but I couldn't find anything helpful regarding my problem. I played around with some of the Frame's properties, like "JournalOwnership", which sounded promising but didn't change anything either. Of course I tried searching the web, but apparently few or no people ran into this issue. Then I tried a different approach and built a new Silverlight navigation application (Visual Studio has this nice template...) from scratch. Of course it worked like a charm. And I couldn't see anything that was done differently from my own application. But this template already is pretty sophisticated, using styling and all, so I began to take out all the unneeded stuff until nothing more than maybe 20 lines of code were left. Basically two hyperlink buttons, the frame, and two pages, consisting of nothing more than text blocks. And still it worked, whereas my own, equally pared-down application did not. In desperation, I started hosting the application in IIS (no difference), and then finally started the Silverlight project directly (instead of using the development server) - and BAM! It worked.&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;This gave me the final push I needed. There must be something wrong with the generated page, because when you start the Silverlight application directly, it dynamically generates a temporary HTML page, which obviously was different in some detail from the HTML page of the web project in the sample code. And then I saw it: the IFrame used for the history had an id attribute set, whereas the HTML page from the sample had not. I added&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;iframe&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="_sl_historyFrame"&lt;/span&gt; ...&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt; to the IFrame tag and the sample worked instantly... &lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;This is one of the bad examples I'll remember for the next years, where a small hint in a release notes document or similar would have saved me hours of frustration. I also hope Tim will update his tutorial soon because probably others will run into this issue too, especially because his sample is not marked as outdated or for SL3 beta only.&lt;/font&gt;&lt;/p&gt;
&lt;p style="font-family: Tahoma;"&gt;&lt;font size="2"&gt;&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133490"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133490" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/MisterGoodcat/aggbug/133490.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>MisterGoodcat</dc:creator>
            <guid>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/14/breaking-changes-in-silverlights-navigation-framework.aspx</guid>
            <pubDate>Tue, 14 Jul 2009 21:08:58 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/MisterGoodcat/comments/133490.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/14/breaking-changes-in-silverlights-navigation-framework.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/MisterGoodcat/comments/commentRss/133490.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Taming the treeview</title>
            <category>Silverlight</category>
            <link>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/08/taming-the-treeview.aspx</link>
            <description>&lt;div style="text-align: justify;"&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;It seemed like a simple task. In one of our Silverlight applications, we're using the tree view control from the &lt;/span&gt;&lt;a style="font-family: Tahoma;" href="http://silverlight.codeplex.com"&gt;Silverlight Toolkit&lt;/a&gt;&lt;span style="font-family: Tahoma;"&gt;. A colleague of mine was instructed to remove all of the hover and selection effects from the tree view items. After struggling with what seemed like a five minute job for more than two hours, he gave up and came to me for advice. Here's what the default design of the tree view looks like, with one of the items selected:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div style="text-align: center;"&gt;&lt;img width="114" height="226" align="baseline" alt="Tree view selection" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/01-treeviewselection.png" /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;p&gt;&lt;font size="2" style="font-family: Tahoma;"&gt;When you want to change parts of a control's default behavior, it's always a good idea to use Expression Blend instead of Visual Studio, because it gives you the possibility to copy the existing templates and use them to work from there. In Visual Studio, you would have to build a new template from scratch, which often is tedious work&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;, especially for complex controls. In Expression Blend, you simply select the control and the according menu entry:&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;img width="529" height="372" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/02-itemcontainerstyle.png" /&gt; &lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;You have to add a key that identifies your style so you can apply it to controls, and you also have to choose where you want to store the new style.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;img width="386" height="229" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/03-newitemcontainerstyle.png" /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;Once you've created the new tree view item style, you can edit its template:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;img width="394" height="112" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/04-editcontrolparts.png" /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2" style="font-family: Tahoma;"&gt;In the current case, after inspecting the available states&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt; you'll find out that there are two rectangles ('select' and 'inactive') in this template, which are made visible in the 'Selected' (and 'SelectedInactive', respectively) state by manipulating their opacity property. We just wanted to remove those effects completely, so I simply deleted both rectangles. If you wanted to adjust the colors or other parts of the effects' appearance, that's the place where you would do that too.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;img width="257" height="577" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/05-inspectingstates.png" /&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;Well, after applying the new ItemContainerStyle to my sample data, I was surprised to find out that not all of the effects were gone. In fact, hovering an item with the mouse still brought up a light blue rectangle around the item's content. I checked again with the template and realized it didn't even have the involved states defined. So where does this additional highlighting come from?&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;img width="108" height="221" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/06-hoverhighlighting.png" /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;The answer is that the header component within the item template is build from child components as well. Simply select it and choose to edit its template:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;img width="434" height="428" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/07-editheadercontrolparts.png" /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;You can see that the header is built from another rectangle (with the suspicious name "hover") and the content itself. The hover rectangle is made visible depending on the current state.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;img width="258" height="516" alt="" src="/images/geekswithblogs_net/MisterGoodcat/2008-07-07a/08-hoverrectangleofheader.png" /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;After removing that rectangle, we finally had a tree view control without any effects for selection and hovering at all (but with all the other functionality, like expanding and collapsing items, left intact).&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: justify;"&gt;&lt;font size="2"&gt;&lt;span style="font-family: Tahoma;"&gt;When I look around the net, I see a lot of people struggle with finding the locations where properties like these are manipulated. Even with the help of Expression Blend it can be confusing, and simple tasks like "how do I turn off x" or "how do I change the color of y" can turn into amazingly time-consuming nightmares. Once you get used to the concept however, things will get better every day :). Hopefully I could give you a small push into the right direction for your next tree view item emergency...&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133321"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133321" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/MisterGoodcat/aggbug/133321.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>MisterGoodcat</dc:creator>
            <guid>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/08/taming-the-treeview.aspx</guid>
            <pubDate>Tue, 07 Jul 2009 22:49:23 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/MisterGoodcat/comments/133321.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/08/taming-the-treeview.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/MisterGoodcat/comments/commentRss/133321.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Attempted self-introduction</title>
            <link>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/07/attempted-self-introduction.aspx</link>
            <description>&lt;div style="text-align: justify; font-family: Tahoma;"&gt;
&lt;p&gt;&lt;font size="2"&gt;Programmers have no easy lifes. It's amazing how many people cannot get typical stereotypes out of their minds: they think of us as confused, long-haired, disheveled, overweight guys, somehow nuts or at least from a different world, sitting in front of their keyboards, a bottle of Coke to the left, cold pizza to the right, hacking mysterious combinations of text into a computer until sunrise. Virgins in their mid-30s, still living at mama's, and due to the lack of sun over the years turned paler than MJ himself. People who cannot clothe a normal thought in words because all the abstract work has fried their brains. Talking - if at all - only about compiler switches, the number 42 and telling jokes which cannot be understood by 99,9% of the human race. Persons that get more excited about Lost than solutions to global warming and wish more for an even bigger monitor than world peace. Spending all their free time on computer games, able to recite from 400 episodes of The Simpsons and only leaving the house for Star Trek conventions.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;br /&gt;
I am of course totally different. I hate Star Trek.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;br /&gt;
:]&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;br /&gt;
The truth is, I am a computer enthusiast, ever have been that way since my father brought a C64 into our home back when I was a kid. I enjoy my work as software developer so much that I'm one of the lucky guys who actually think work is fun... and because I've learned a lot from people all around the world who kindly share their experiences online, I decided to give something back to the community. Meow!&lt;/font&gt;&lt;/p&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133318"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133318" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/MisterGoodcat/aggbug/133318.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>MisterGoodcat</dc:creator>
            <guid>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/07/attempted-self-introduction.aspx</guid>
            <pubDate>Tue, 07 Jul 2009 21:22:31 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/MisterGoodcat/comments/133318.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/MisterGoodcat/archive/2009/07/07/attempted-self-introduction.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/MisterGoodcat/comments/commentRss/133318.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>