<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/"><channel><title>Karsten Januszewski on 'silverlight 2'</title><description>Karsten Januszewski blog posts filtered by a specific tag</description><link>/irhetoric/blog/tags/silverlight+2/default.aspx</link><language>en-us</language><pubDate>Fri, 05 Sep 2008 20:40:50 GMT</pubDate><generator>Oxite</generator><item><title>Silverlight Carousel and WPF Training Site Ported To Beta 2</title><description>&lt;p&gt;Both &lt;a href="http://silverlight.net/learn/learnvideo.aspx?video=33734"&gt;Yet Another Carousel (YAC)&lt;/a&gt; and the &lt;a href="http://www.visitmix.com/University/wpf/bc08/"&gt;WPF training site&lt;/a&gt; (which uses YAC) have been ported to Silverlight Beta 2.&lt;/p&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/64/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/64/default.aspx</link><pubDate>Fri, 20 Jun 2008 21:11:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/64/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>1</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/64/trackback/default.aspx</trackback:ping><category>Silverlight 2</category></item><item><title>Interview With Effective UI</title><description>&lt;p&gt;&lt;a href="http://www.effectiveui.com/"&gt;Effective UI&lt;/a&gt; has put together a site called the &lt;a href="http://www.uiresourcecenter.com"&gt;User Interface Resource Center&lt;/a&gt;.&amp;#160; They were kind enough to interview me about WPF, Silverlight, Expression and more.&amp;#160; As they put it:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;In the 2008 whitepaper &amp;#8220;The New Iteration,&amp;#8221; Karsten Januszewski teams up with Jaime Rodriguez to spotlight what Microsoft has dubbed the XAML revolution. Based on interviews with early Windows Presentation (WPF) and Silverlight users, Januszewski drills into emerging Microsoft technologies and explores how the designer/developer collaborative process is undergoing change. But, what's the bigger picture? Why is Microsoft investing so heavily in UI Technologies? What are the business benefits that will drive adoption in a field traditionally dominated by rivals? These questions and others are answered here. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You can read &lt;a href="http://www.uiresourcecenter.com/ui-technologies/microsoft-silverlight/articles.html?s=3_3_1"&gt;the full article here&lt;/a&gt; or &lt;a href="http://www.uiresourcecenter.com/ui-technologies/microsoft-silverlight/articles/karsten_interview_edit-1.mp3"&gt;download the interview&lt;/a&gt;.&lt;/p&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/60/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/60/default.aspx</link><pubDate>Tue, 06 May 2008 16:16:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/60/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>0</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/60/trackback/default.aspx</trackback:ping><category>Silverlight</category><category>Silverlight 2</category><category>WPF</category></item><item><title>Using Silverlight Carousel For Video</title><description>&lt;p&gt;I recently used the &lt;a href="http://www.rhizohm.net/download/YetAnotherCarousel.zip" target="_blank"&gt;Silverlight 2 Carousel sample&lt;/a&gt; I wrote for the &lt;a href="http://www.visitmix.com/University/wpf/bc08/ " target="_blank"&gt;WPF Boot Camp application&lt;/a&gt; and encountered a gotcha that some others may hit. Each carousel contains multiple videos, between 5 - 10.&amp;#160; Initially, the source of the video was coming from an mms:// URI, streamed from a Windows server. All worked no problem.&amp;#160; But, the video quality was sub par and I had other videos that were better quality, but not streamed over mms://. I switched to the higher quality videos, which are buffered over http://.&amp;#160; When I did that, the carousel would only display two videos at a time and the other panels would not display any video, even with each of the videos set with auto-play to false. I realized the reason was that the browser itself was throttling the ability of the Silverlight application to begin buffering the videos.&amp;#160; It would only handle two at a time. &lt;/p&gt;  &lt;p&gt;The solution?&amp;#160; Rather than begin to buffer all the videos, I display screenshots of each video.&amp;#160; Then, when the user clicks play, I actually load and play the video. If you want the code I used to built the site, you can download it &lt;a href="http://www.rhizohm.net/download/wpfbootcamp.zip"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;I also fixed a bug in the carousel code where layout wasn't centering the carousel, which is in the latest build of the carousel.&lt;/p&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/54/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/54/default.aspx</link><pubDate>Fri, 11 Apr 2008 22:25:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/54/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>3</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/54/trackback/default.aspx</trackback:ping><category>Silverlight 2</category></item><item><title>Tweaking The Default Styles For Silverlight 2 Controls</title><description>&lt;p&gt;In WPF, when styling a control, Blend has a very handy feature which allows you to get at the default style and template for any control, simply by right clicking the control and selecting &amp;quot;Edit Control Parts (Template)&amp;quot; and then selecting &amp;quot;Edit a Copy...&amp;quot;&amp;#160; These styles and control templates are great places to start when restyling controls.&lt;/p&gt;  &lt;p&gt;Unfortunately, Silverlight 2 doesn't have the corrallary in Blend (yet).&amp;#160; However, this is easy to get around once you get a hold of the &lt;a href="http://rhizohm.net/download/generic.zip" target="_blank"&gt;generic.xaml&lt;/a&gt; file for all the Silverlight controls. I went ahead and posted it, although there are two other places you can get an &amp;quot;official&amp;quot; copy. First is the source code for the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=EA93DD89-3AF2-4ACB-9CF4-BFE01B3F02D4&amp;amp;displaylang=en" target="_blank"&gt;Silverlight Controls&lt;/a&gt; themselves.&amp;#160; Second is by using &lt;a href="http://www.aisto.com/roeder/dotnet/" target="_blank"&gt;Reflector&lt;/a&gt;, loading C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.dll and looking at its resources in the disassembler. &lt;/p&gt;  &lt;p&gt;Once you have &lt;a href="http://rhizohm.net/download/generic.zip" target="_blank"&gt;generic.xaml&lt;/a&gt;, restyling controls by tweaking the existing styles is simple.&amp;#160; First, cut/paste the contents of generic.xaml (either all the styles or just the style of the control you want to restyle) into the resources of either app.xaml or one of your pages (depending on the scope you are seeking.) Second, give the style an &lt;strong&gt;x:Key&lt;/strong&gt; value so that you can reference it later. Finally, add that style attribute to your control in XAML: Style=&amp;quot;{StaticResource CustomButton}&amp;quot;.&amp;#160; That's it!&amp;#160; Now you can tweak the style of the button, even changing the storyboards that get fired as a result of different states. &lt;/p&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/53/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/53/default.aspx</link><pubDate>Tue, 01 Apr 2008 18:55:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/53/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>4</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/53/trackback/default.aspx</trackback:ping><category>Silverlight 2</category></item><item><title>What To Do When Breakpoints Disappear and Debugging Dies In Silverlight 2</title><description>&lt;p&gt;For some random reason, occasionally Silverlight 2 projects will suddenly no longer support debugging.&amp;#160; Very frustrating.&amp;#160; Fortunately, the fix is pretty simple:&lt;/p&gt;  &lt;p&gt;Right click on the Web in the Solution Explorer pane.&amp;#160; If you have a Web project, you will see &amp;quot;Property Pages&amp;quot;, if you have a Web Application project you will see &amp;quot;Properties&amp;quot;.&amp;#160; Select that.&lt;/p&gt;  &lt;p&gt;Under &amp;quot;Property Pages&amp;quot; select &amp;quot;Start Options&amp;quot; and make sure that both &amp;quot;Silverlight&amp;quot; and &amp;quot;ASP.NET&amp;quot; are checked, &amp;quot;Native Code&amp;quot; and &amp;quot;SQL Server&amp;quot; are unchecked.&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;img src="http://www.rhizohm.net/images/dialog.png" /&gt;&lt;/p&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/52/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/52/default.aspx</link><pubDate>Tue, 01 Apr 2008 18:35:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/52/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>1</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/52/trackback/default.aspx</trackback:ping><category>Silverlight 2</category></item><item><title>Using A UserControl As A DataTemplate in Silverlight 2 and Blend 2</title><description>&lt;p&gt;Recently learned a nifty trick from &lt;a href="http://blois.us/blog" target="_blank"&gt;Pete Blois&lt;/a&gt; about how to use a UserControl as a DataTemplate in Silverlight 2.&amp;#160; This is real handy, because it allows for a more WPF-like workflow, allowing a designer to create data templates in Blend. With this workflow, the designer can go ahead and build out the data template as a UserControl. He/she may need some help from the developer to wire up the data fields -- in fact, the recommendation would be that the developer maybe create a dummy project with all the fields for the designer and then the designer can party on. (I modeled this technique here for WPF and &lt;a href="http://flotzam.com/blog/post/How-To-Remix-Flotzam-Screencast-Part-1-Reskinning-The-Templates.aspx" target="_blank"&gt;reskinning Flotzam&lt;/a&gt;.)&lt;/p&gt;  &lt;p&gt; So, here's a real simple data template from a user control:&lt;/p&gt;  &lt;div&gt;   &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&amp;lt;UserControl
    xmlns=&lt;span style="color: #006080"&gt;&amp;quot;http://schemas.microsoft.com/client/2007&amp;quot;&lt;/span&gt;
    xmlns:x=&lt;span style="color: #006080"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt;
    xmlns:d=&lt;span style="color: #006080"&gt;&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&lt;/span&gt;
    xmlns:mc=&lt;span style="color: #006080"&gt;&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&lt;/span&gt;
    mc:Ignorable=&lt;span style="color: #006080"&gt;&amp;quot;d&amp;quot;&lt;/span&gt;
    x:Class=&lt;span style="color: #006080"&gt;&amp;quot;SilverlightApplication1.DataView&amp;quot;&lt;/span&gt;
    d:DesignWidth=&lt;span style="color: #006080"&gt;&amp;quot;149&amp;quot;&lt;/span&gt; d:DesignHeight=&lt;span style="color: #006080"&gt;&amp;quot;36&amp;quot;&lt;/span&gt; Width=&lt;span style="color: #006080"&gt;&amp;quot;153&amp;quot;&lt;/span&gt; &amp;gt;

    &amp;lt;Grid x:Name=&lt;span style="color: #006080"&gt;&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; Background=&lt;span style="color: #006080"&gt;&amp;quot;#FFFF0000&amp;quot;&lt;/span&gt; &amp;gt;
        &amp;lt;TextBlock HorizontalAlignment=&lt;span style="color: #006080"&gt;&amp;quot;Left&amp;quot;&lt;/span&gt; VerticalAlignment=&lt;span style="color: #006080"&gt;&amp;quot;Top&amp;quot;&lt;br /&gt;&lt;/span&gt;              Text=&lt;span style="color: #006080"&gt;&amp;quot;{Binding}&amp;quot;&lt;/span&gt; TextWrapping=&lt;span style="color: #006080"&gt;&amp;quot;Wrap&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/UserControl&amp;gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;Note the use of the {Binding} syntax, which will just default bind to the single property on my data class. You could of course name the property you are binding to in the more likely case that you had more properties in your class. &lt;/p&gt;

&lt;p&gt;Then, the xaml file that actually uses this as a data template looks like this:&lt;/p&gt;

&lt;div&gt;
  &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&amp;lt;UserControl x:Class=&lt;span style="color: #006080"&gt;&amp;quot;SilverlightApplication1.Page&amp;quot;&lt;/span&gt;
    xmlns=&lt;span style="color: #006080"&gt;&amp;quot;http://schemas.microsoft.com/client/2007&amp;quot;&lt;/span&gt; 
    xmlns:x=&lt;span style="color: #006080"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; 
    Width=&lt;span style="color: #006080"&gt;&amp;quot;400&amp;quot;&lt;/span&gt; Height=&lt;span style="color: #006080"&gt;&amp;quot;300&amp;quot;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlns:SilverlightApplication1=&lt;span style="color: #006080"&gt;&amp;quot;&lt;strong&gt;clr-namespace:SilverlightApplication1;assembly=SilverlightApplication1&lt;/strong&gt;&amp;quot;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlns:d=&lt;span style="color: #006080"&gt;&lt;a href="http://schemas.microsoft.com/expression/blend/2008"&gt;http://schemas.microsoft.com/expression/blend/2008&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; xmlns:mc=&lt;span style="color: #006080"&gt;&lt;a href="http://schemas.openxmlformats.org/markup-compatibility/2006"&gt;http://schemas.openxmlformats.org/markup-compatibility/2006&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; mc:Ignorable=&lt;span style="color: #006080"&gt;&amp;quot;d&amp;quot;&lt;/span&gt;&amp;gt;
    &amp;lt;UserControl.Resources&amp;gt;
        &amp;lt;SilverlightApplication1:DataSource x:Key=&lt;span style="color: #006080"&gt;&amp;quot;DataSourceDS&amp;quot;&lt;/span&gt; d:IsDataSource=&lt;span style="color: #006080"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;/UserControl.Resources&amp;gt; 
    &amp;lt;Grid x:Name=&lt;span style="color: #006080"&gt;&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt; Background=&lt;span style="color: #006080"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;ListBox Margin=&lt;span style="color: #006080"&gt;&amp;quot;8,8,165,8&amp;quot;&lt;/span&gt; ItemsSource=&lt;span style="color: #006080"&gt;&amp;quot;{Binding Items, Mode=OneWay, &lt;br /&gt;            Source={StaticResource DataSourceDS}}&amp;quot;&lt;/span&gt;&amp;gt;
            &amp;lt;ListBox.ItemTemplate&amp;gt;
                &amp;lt;DataTemplate&amp;gt;
                    &amp;lt;Grid Background=&lt;span style="color: #006080"&gt;'Blue'&lt;/span&gt; HorizontalAlignment=&lt;span style="color: #006080"&gt;'Stretch'&lt;/span&gt;&amp;gt;
                        &amp;lt;SilverlightApplication1:DataView /&amp;gt;
                    &amp;lt;/Grid&amp;gt;
                &amp;lt;/DataTemplate&amp;gt;
            &amp;lt;/ListBox.ItemTemplate&amp;gt;
        &amp;lt;/ListBox&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/UserControl&amp;gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;Note that in the attribute where I register the namespace for the datasource, I explicitly refer to the assembly.&amp;#160; This is a gotcha when doing this; normally you don't need to refer to the assembly if it is in the same class, but in this case you do. &lt;/p&gt;

&lt;p&gt;And there you have it.&amp;#160; &lt;a href="http://rhizohm.net/download/silverlightapplication1.zip" target="_blank"&gt;Download the code&lt;/a&gt; here if you'd like.&lt;/p&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/51/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/51/default.aspx</link><pubDate>Mon, 31 Mar 2008 23:00:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/51/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>2</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/51/trackback/default.aspx</trackback:ping><category>Silverlight 2</category></item><item><title>Reading a file from the server in Silverlight 2</title><description>&lt;p&gt;I recently was working on a Silverlight 2 project and needed to &amp;quot;phone home&amp;quot; from the .xap back to the server of origin to get a text file from the server. It wasn't completely obvious how to do this at first, so I figured I'd share the code I wrote if others need to do something similar. Note a couple things: &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;You'll need to add a reference to System.Net.dll and using statements for System.Net and System.IO.&lt;/li&gt;    &lt;li&gt;The ASP.NET WebDev server used for development will run the project on a random port. You can change this behavior so you have a consistent port number. Click on the project node in Solution Explorer and open the properties window (press F4). Change the &amp;#8220;Use dynamic ports&amp;#8221; property from True to False and edit the port number.&lt;/li&gt;    &lt;li&gt;If you try to go to a server other than the server of origin, you'll most likely run into cross site scripting issues.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;pre  style="width:500" &gt;    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;partial&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;Page&lt;/span&gt; : &lt;span style="color: rgb(43,145,175)"&gt;UserControl
&lt;/span&gt;    {
        &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; Page()
        {
            InitializeComponent();
            &lt;span style="color: rgb(0,0,255)"&gt;this&lt;/span&gt;.Loaded += &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;RoutedEventHandler&lt;/span&gt;(Page_Loaded);
        }

        &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; Page_Loaded(&lt;span style="color: rgb(0,0,255)"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;RoutedEventArgs&lt;/span&gt; e)
        {
            &lt;span style="color: rgb(0,128,0)"&gt;//you may need to change this path depending on your web server
&lt;/span&gt;            &lt;span style="color: rgb(43,145,175)"&gt;WebRequest&lt;/span&gt; request = &lt;span style="color: rgb(43,145,175)"&gt;WebRequest&lt;/span&gt;.Create(&lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;Uri&lt;/span&gt;(&lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;http://localhost:4386/io_web/textfile.txt&amp;quot;&lt;/span&gt;));
            request.Method = &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;GET&amp;quot;&lt;/span&gt;;
            request.ContentType = &lt;span style="color: rgb(163,21,21)"&gt;&amp;quot;text/plain&amp;quot;&lt;/span&gt;;
            request.BeginGetResponse(&lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;AsyncCallback&lt;/span&gt;(ResponseReady), request);
            
        }

        &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; ResponseReady(&lt;span style="color: rgb(43,145,175)"&gt;IAsyncResult&lt;/span&gt; asyncResult)
        {
            &lt;span style="color: rgb(43,145,175)"&gt;WebRequest&lt;/span&gt; request = asyncResult.AsyncState &lt;span style="color: rgb(0,0,255)"&gt;as&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;WebRequest&lt;/span&gt;;
            &lt;span style="color: rgb(0,0,255)"&gt;using&lt;/span&gt; (&lt;span style="color: rgb(43,145,175)"&gt;WebResponse&lt;/span&gt; response = request.EndGetResponse(asyncResult))
            {
                &lt;span style="color: rgb(0,0,255)"&gt;using&lt;/span&gt; (&lt;span style="color: rgb(43,145,175)"&gt;Stream&lt;/span&gt; responseStream = response.GetResponseStream())
                {
                    &lt;span style="color: rgb(43,145,175)"&gt;StreamReader&lt;/span&gt; reader = &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;StreamReader&lt;/span&gt;(responseStream);
                    &lt;span style="color: rgb(0,0,255)"&gt;string&lt;/span&gt; s = reader.ReadLine();
                    System.Diagnostics.&lt;span style="color: rgb(43,145,175)"&gt;Debug&lt;/span&gt;.WriteLine(s);
                }
            }
        }        

    }&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;</description><comments>http://www.rhizohm.net//irhetoric/blog/50/default.aspx</comments><link>http://www.rhizohm.net//irhetoric/blog/50/default.aspx</link><pubDate>Mon, 31 Mar 2008 18:39:00 GMT</pubDate><guid isPermaLink="true">http://www.rhizohm.net//irhetoric/blog/50/default.aspx</guid><dc:creator>Karsten Januszewski</dc:creator><slash:comments>4</slash:comments><trackback:ping>http://www.rhizohm.net//irhetoric/blog/50/trackback/default.aspx</trackback:ping><category>Silverlight 2</category></item></channel></rss>