<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dotnet thoughts &#187; Silverlight</title>
	<atom:link href="http://www.dotnetthoughts.net/category/net/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 03:18:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Webcams in Silverlight 4.0</title>
		<link>http://www.dotnetthoughts.net/2012/01/03/webcams-in-silverlight-4/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/03/webcams-in-silverlight-4/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 17:58:32 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Web cam]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2209</guid>
		<description><![CDATA[Microsoft Silverlight 4.0 supports Webcam and microphone access from Web Applications like Flash. This feature enables a number of scenarios, such as capturing and displaying images, uploading profile pictures to social networking applications etc. Here is code part, which will &#8230; <a href="http://www.dotnetthoughts.net/2012/01/03/webcams-in-silverlight-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Microsoft Silverlight 4.0 supports Webcam and microphone access from Web Applications like Flash. This feature enables a number of scenarios, such as capturing and displaying images, uploading profile pictures to social networking applications etc. Here is code part, which will start the webcam, stop the webcam and captures the image.</p>
<p>Initialize the web cam</p>
<pre class="brush: csharp; title: ; notranslate">
private CaptureSource _captureSource;
private VideoBrush _videoBrush;
private ImageBrush _imageBrush;

_captureSource = new CaptureSource();
_captureSource.CaptureImageCompleted += (o, e) =&gt;
{
    _imageBrush = new ImageBrush();
    _imageBrush.ImageSource = e.Result;
    rectWebCamView.Fill = _imageBrush;
};
_captureSource.CaptureFailed += (o, e) =&gt;
{
    MessageBox.Show(e.ErrorException.Message);
};
</pre>
<p>Start the web cam, the rectWebCamView is a Rectangle.</p>
<pre class="brush: csharp; title: ; notranslate">
if (_captureSource.State != CaptureState.Started)
{
    _captureSource.VideoCaptureDevice =
        CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();
    _videoBrush = new VideoBrush();
    _videoBrush.SetSource(_captureSource);
    rectWebCamView.Fill = _videoBrush;

    if (CaptureDeviceConfiguration.RequestDeviceAccess())
    {
        _captureSource.Start();
    }
}
</pre>
<p>The RequestDeviceAccess() method invokes a request dialog for accessing the webcame like this.</p>
<div id="attachment_2211" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2211" title="Request Access dialog " src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/request_access_opt-300x115.jpg" alt="Request Access dialog " width="300" height="115" /><p class="wp-caption-text">Request Access dialog</p></div>
<p>Note: The RequestAccess must be called in response to a user initiated event, such as a Button Click event.</p>
<p>Stop the web cam</p>
<pre class="brush: csharp; title: ; notranslate">
_captureSource.Stop();
</pre>
<p>And finally the capture image.</p>
<pre class="brush: csharp; title: ; notranslate">
if (_captureSource.State == CaptureState.Started)
{
    _captureSource.CaptureImageAsync();
}
</pre>
<p>The method will invoke CaptureImageCompleted event, and which will capture the image and display it in the rectangle. The XAML code contains only 3 buttons and one rectangle, so I am not posting the XAML code.</p>
<p>Happy programming <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2009/11/10/post-data-using-httpwebrequest-in-c-sharp/" title="Permanent link to Post data using HttpWebRequest in C#">Post data using HttpWebRequest in C#</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/09/20/drag-and-drop-in-silverlight-3/" title="Permanent link to Drag and Drop in Silverlight 3">Drag and Drop in Silverlight 3</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/01/06/file-uploader-using-silverlight-and-wcf/" title="Permanent link to File Uploader using Silverlight and WCF">File Uploader using Silverlight and WCF</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/11/04/how-to-access-sharepoint-list-items-using-silverlight-object-model/" title="Permanent link to How to access SharePoint List Items using Silverlight Object Model">How to access SharePoint List Items using Silverlight Object Model</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/11/05/hosting-silverlight-application-in-sharepoint-2010/" title="Permanent link to Hosting Silverlight application in Sharepoint 2010">Hosting Silverlight application in Sharepoint 2010</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/03/webcams-in-silverlight-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free .NET Decompiler &#8211; JustDecompile</title>
		<link>http://www.dotnetthoughts.net/2011/11/21/free-net-decompiler-justdecompile/</link>
		<comments>http://www.dotnetthoughts.net/2011/11/21/free-net-decompiler-justdecompile/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 02:20:33 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Decompiler]]></category>
		<category><![CDATA[JustDecompile]]></category>
		<category><![CDATA[Silverlight Decompile]]></category>
		<category><![CDATA[Telerik JustDecompile]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2070</guid>
		<description><![CDATA[Few days back I read one blog post from Telerik, about beta release of JustDecompile. From official blog : JustDecompile is a new, free developer productivity tool designed to enable easy .NET assembly browsing and decompiling. In the past it &#8230; <a href="http://www.dotnetthoughts.net/2011/11/21/free-net-decompiler-justdecompile/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Few days back I read one blog post from Telerik, about beta release of JustDecompile. From official blog :</p>
<blockquote><p>JustDecompile is a new, free developer productivity tool designed to enable easy .NET assembly browsing and decompiling. In the past it has only worked with .NET assemblies, but today it also works with Silverlight XAP files. I’m going to walk you through a sample of using this functionality.</p></blockquote>
<p>You can download the JustDecompile from <a href="http://www.telerik.com/products/decompiler.aspx" target="_blank">here</a>.</p>
<p>And here is screenshot of JustDecompile running on my system.</p>
<div id="attachment_2075" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/2011/11/21/free-net-decompiler-justdecompile/justdecompile/" rel="attachment wp-att-2075"><img class="size-medium wp-image-2075" title=" Telerik JustDecompile Beta " src="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/justdecompile-300x179.jpg" alt=" Telerik JustDecompile Beta " width="300" height="179" /></a><p class="wp-caption-text">Telerik JustDecompile Beta</p></div>
<p>It is still in beta stage. So I don&#8217;t think it is not in state where we can compare this with other .net decompilers available in the market.</p>
<p>Happy Programming.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/06/14/silverlight-5-beta-is-available-for-download/" title="Permanent link to Silverlight 5 Beta Is Available For Download">Silverlight 5 Beta Is Available For Download</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/11/20/there-is-a-duplicate-system-web-extensions-scripting-scriptresourcehandler-section-defined/" title="Permanent link to There is a duplicate &#8216;system.web.extensions / scripting / scriptResourceHandler&#8217; section defined">There is a duplicate &#8216;system.web.extensions / scripting / scriptResourceHandler&#8217; section defined</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/08/03/windows-7-sdk-installation-success-or-error-status-1603/" title="Permanent link to Windows 7 SDK Installation success or error status: 1603">Windows 7 SDK Installation success or error status: 1603</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/10/19/the-hash-value-is-not-correct-%e2%80%93-silver-light-installation-error/" title="Permanent link to The hash value is not correct – Silverlight Installation Error">The hash value is not correct – Silverlight Installation Error</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2012/02/05/fuslogvw-exe-and-diagnosing-net-assembly-binding-issues/" title="Permanent link to Fuslogvw.exe and diagnosing .NET assembly binding issues">Fuslogvw.exe and diagnosing .NET assembly binding issues</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/11/21/free-net-decompiler-justdecompile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upload multiple files using Silverlight</title>
		<link>http://www.dotnetthoughts.net/2011/07/17/upload-multiple-files-using-silverlight/</link>
		<comments>http://www.dotnetthoughts.net/2011/07/17/upload-multiple-files-using-silverlight/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 10:45:54 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.0 / 3.5]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[Upload Multiple Files]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1764</guid>
		<description><![CDATA[Early this year I wrote a post about creating a File Uploader using Silverlight and WCF. And today I got a question from one forum, about to create uploader for multiple files. And here is source code, I am just &#8230; <a href="http://www.dotnetthoughts.net/2011/07/17/upload-multiple-files-using-silverlight/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Early this year I wrote a post about creating a <a href="http://www.dotnetthoughts.net/2010/01/06/file-uploader-using-silverlight-and-wcf/">File Uploader using Silverlight and WCF</a>. And today I got a question from one forum, about to create uploader for multiple files. And here is source code, I am just modified my eariler source code slightly to select multiple file.</p>
<pre class="brush: csharp; title: ; notranslate">
OpenFileDialog openFileDialog = new OpenFileDialog();
//Hard coding filter - You can read it from client side too.
openFileDialog.Filter = &quot;Image Files|*.jpg;*.bmp;*.png&quot;;
openFileDialog.Multiselect = true;
bool? result = openFileDialog.ShowDialog();
if (result.HasValue &amp;&amp; result.Value)
{
    spProgress.Visibility = System.Windows.Visibility.Visible;

    Service1Client client = new Service1Client();
    client.DoUploadCompleted += (o, p) =&gt;
    {
        if (p.Error != null)
        {
            MessageBox.Show(p.Error.Message);
        }
        else
        {
            MessageBox.Show(&quot;Done&quot;);
        }
    };
    client.DoUploadAsync(CreateUploadData(openFileDialog.Files));
    client.CloseAsync();
}
</pre>
<p>And here is the helper methods.</p>
<pre class="brush: csharp; title: ; notranslate">
private Dictionary&lt;string, byte[]&gt; CreateUploadData(IEnumerable&lt;FileInfo&gt; infos)
{
    var files = new Dictionary&lt;string, byte[]&gt;();
    foreach (var fileInfo in infos)
    {
        files.Add(fileInfo.Name, ReadFileContents(fileInfo.OpenRead()));
    }

    return files;
}

private byte[] ReadFileContents(Stream stream)
{
    using (Stream sr = stream)
    {
        byte[] contents = new byte[sr.Length];
        sr.Read(contents, 0, contents.Length);
        return contents;
    }
}
</pre>
<p>And here is the change in WCF Service.</p>
<pre class="brush: csharp; title: ; notranslate">
[OperationContract]
public void DoUpload(Dictionary&lt;string, byte[]&gt; files)
{
    string folder = @&quot;C:\Uploads&quot;;
    foreach (var file in files)
    {
        using (FileStream sw = File.OpenWrite(Path.Combine(folder, file.Key)))
        {
            sw.Write(file.Value, 0, file.Value.Length);
        }
    }
    return;
}
</pre>
<p>Sometimes if you are uploading too many files with large size, you may get some error like Not Found, maxArrayLength exceeded. You can fix this error by addingin the web.config file.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2010/01/06/file-uploader-using-silverlight-and-wcf/" title="Permanent link to File Uploader using Silverlight and WCF">File Uploader using Silverlight and WCF</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2009/07/28/uploading-files-using-webservice/" title="Permanent link to Uploading Files using Webservice">Uploading Files using Webservice</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/11/26/how-to-upload-file-using-httpwebrequest-class/" title="Permanent link to How to upload file using HttpWebRequest class">How to upload file using HttpWebRequest class</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/17/developing-a-simple-rss-reader-in-c-net/" title="Permanent link to Developing a simple RSS Reader in C#.Net">Developing a simple RSS Reader in C#.Net</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2008/05/24/select-folder-using-openfiledialog-control/" title="Permanent link to Select folder using OpenFileDialog control">Select folder using OpenFileDialog control</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/07/17/upload-multiple-files-using-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 5 Beta Is Available For Download</title>
		<link>http://www.dotnetthoughts.net/2011/06/14/silverlight-5-beta-is-available-for-download/</link>
		<comments>http://www.dotnetthoughts.net/2011/06/14/silverlight-5-beta-is-available-for-download/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 09:49:40 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Silverlight 5 Beta]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1698</guid>
		<description><![CDATA[Microsoft Silverlight is a powerful tool for creating and delivering rich Internet applications and media experiences on the Web. Silverlight 5 builds on the foundation of Silverlight 4 for building business applications and premium media experiences. Among other capabilities, the &#8230; <a href="http://www.dotnetthoughts.net/2011/06/14/silverlight-5-beta-is-available-for-download/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Microsoft Silverlight is a powerful tool for creating and delivering rich Internet applications and media experiences on the Web. Silverlight 5 builds on the foundation of Silverlight 4 for building business applications and premium media experiences. Among other capabilities, the Silverlight 5 beta highlights dramatic video quality and performance improvements, and features that improve developer productivity.</p>
<p>The final Silverlight 5 release will be available in 2011. You can find more details and can download the beta version from <a href="http://www.silverlight.net/getstarted/silverlight-5-beta/" target="_blank">here</a></p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/11/21/free-net-decompiler-justdecompile/" title="Permanent link to Free .NET Decompiler &#8211; JustDecompile">Free .NET Decompiler &#8211; JustDecompile</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/10/visual-studio-2010-service-pack-1-beta-released/" title="Permanent link to Visual Studio 2010 Service Pack 1 Beta Released">Visual Studio 2010 Service Pack 1 Beta Released</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/04/16/unable-to-start-debugging-the-silverlight-managed-debugging-package-isnt-installed/" title="Permanent link to Unable to start debugging. The Silverlight managed debugging package isn&#8217;t installed.">Unable to start debugging. The Silverlight managed debugging package isn&#8217;t installed.</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/17/developing-a-simple-rss-reader-in-c-net/" title="Permanent link to Developing a simple RSS Reader in C#.Net">Developing a simple RSS Reader in C#.Net</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/10/19/the-hash-value-is-not-correct-%e2%80%93-silver-light-installation-error/" title="Permanent link to The hash value is not correct – Silverlight Installation Error">The hash value is not correct – Silverlight Installation Error</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/06/14/silverlight-5-beta-is-available-for-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing a simple RSS Reader in C#.Net</title>
		<link>http://www.dotnetthoughts.net/2010/12/17/developing-a-simple-rss-reader-in-c-net/</link>
		<comments>http://www.dotnetthoughts.net/2010/12/17/developing-a-simple-rss-reader-in-c-net/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 03:46:43 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.0 / 3.5]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[RSS Reader]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1286</guid>
		<description><![CDATA[Yesterday one of my ex-colleague asked me how RSS feeds works and how to parse it in .Net Framework. I think helped him to get an idea about how RSS works. For the second one I started searching and I &#8230; <a href="http://www.dotnetthoughts.net/2010/12/17/developing-a-simple-rss-reader-in-c-net/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Yesterday one of my ex-colleague asked me how RSS feeds works and how to parse it in .Net Framework. I think helped him to get an idea about how RSS works. For the second one I started searching and I found the one way using XML document classes. Then I come to know the inbuilt classes for syndication in .Net Framework, which comes under the System.ServiceModel.Syndication namespace.(If you are using .Net 3.5, you need to add reference of System.ServiceModel.Web.dll to get the namespace, and in .Net 4.0 it is under System.ServiceModel.dll)</p>
<p style="text-align: justify;">Here is a sample implementation, which displaying RSS feeds in a WPF application.</p>
<pre class="brush: csharp; title: ; notranslate">
private void cmdRead_Click(object sender, RoutedEventArgs e)
{
    WebClient client = new WebClient();
    client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
    client.DownloadStringAsync(new Uri(this.txtUrl.Text));
}

private void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
    XmlReader reader = XmlReader.Create(new StringReader(e.Result));
    SyndicationFeed feed = SyndicationFeed.Load(reader);
    this.lstBox.ItemsSource = feed.Items;
}

private void linkUrl_Click(object sender, RoutedEventArgs e)
{
    string url = (e.Source as Hyperlink).NavigateUri.AbsoluteUri;
    Process.Start(url);
}
</pre>
<p>And here is the WPF &#8211; XAML </p>
<pre class="brush: xml; title: ; notranslate">
&lt;Window x:Class=&quot;RssReader.MainWindow&quot;
        xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
        xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
        Title=&quot;MainWindow&quot; Height=&quot;350&quot; Width=&quot;525&quot;&gt;
    &lt;Grid&gt;
        &lt;Grid.RowDefinitions&gt;
            &lt;RowDefinition Height=&quot;Auto&quot; /&gt;
            &lt;RowDefinition Height=&quot;*&quot; /&gt;
            &lt;RowDefinition Height=&quot;Auto&quot; /&gt;
        &lt;/Grid.RowDefinitions&gt;
        &lt;Grid Grid.Row=&quot;0&quot;&gt;
            &lt;Grid.ColumnDefinitions&gt;
                &lt;ColumnDefinition Width=&quot;Auto&quot; /&gt;
                &lt;ColumnDefinition Width=&quot;*&quot; /&gt;
                &lt;ColumnDefinition Width=&quot;Auto&quot; /&gt;
            &lt;/Grid.ColumnDefinitions&gt;
            &lt;TextBlock Grid.Column=&quot;0&quot;&gt;URL&lt;/TextBlock&gt;
            &lt;TextBox Name=&quot;txtUrl&quot; Grid.Column=&quot;1&quot; /&gt;
            &lt;Button Content=&quot;Read&quot; Name=&quot;cmdRead&quot; Click=&quot;cmdRead_Click&quot; Grid.Column=&quot;2&quot; /&gt;
        &lt;/Grid&gt;
        &lt;ListBox Name=&quot;lstBox&quot; Grid.Row=&quot;1&quot;&gt;
            &lt;ListBox.ItemTemplate&gt;
                &lt;DataTemplate&gt;
                    &lt;StackPanel&gt;
                        &lt;TextBlock Text=&quot;{Binding Path=Title.Text}&quot; /&gt;
                        &lt;TextBlock TextAlignment=&quot;Justify&quot; Text=&quot;{Binding Path=Summary.Text}&quot; /&gt;

                        &lt;TextBlock&gt;
                            &lt;Hyperlink Name=&quot;linkUrl&quot; Click=&quot;linkUrl_Click&quot; NavigateUri=&quot;{Binding Path=Id}&quot;&gt;
                                &lt;Label Content=&quot;{Binding Path=Title.Text}&quot; &gt;&lt;/Label&gt;
                            &lt;/Hyperlink&gt;
                        &lt;/TextBlock&gt;
                    &lt;/StackPanel&gt;
                &lt;/DataTemplate&gt;
            &lt;/ListBox.ItemTemplate&gt;
        &lt;/ListBox&gt;
        &lt;StatusBar Grid.Row=&quot;2&quot;&gt;
            &lt;StatusBarItem Content=&quot;Welcome to RSS Reader&quot; /&gt;
        &lt;/StatusBar&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</pre>
<p>This is a basic implementation, you can add more features like multiple urls, settings etc. You can developing a RSS client in silverlight with the same code, but the problem with silverlight is we require a crossdomainpolicy.xml file in the server. If the file is not found it will throw security exception. </p>
<p>Happy Programming.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2008/04/22/hello-world-application-in-wpf/" title="Permanent link to Hello World Application in WPF">Hello World Application in WPF</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2008/12/08/gridsplitter-control-in-wpf/" title="Permanent link to Gridsplitter control in WPF">Gridsplitter control in WPF</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2008/06/23/menu-icons-in-wpf/" title="Permanent link to Menu Icons in WPF">Menu Icons in WPF</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/11/18/how-to-create-a-rss-feed-using-asp-net/" title="Permanent link to How to create a RSS feed using ASP.Net">How to create a RSS feed using ASP.Net</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2009/11/02/wpf-interoperability-with-windows-forms/" title="Permanent link to WPF interoperability with Windows Forms">WPF interoperability with Windows Forms</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2010/12/17/developing-a-simple-rss-reader-in-c-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

