<?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>Mark Harris &#187; silverlight</title>
	<atom:link href="http://www.markharris.net.au/blog/category/net/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markharris.net.au/blog</link>
	<description>Prognostication Free</description>
	<lastBuildDate>Tue, 27 Sep 2011 02:32:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Silverlight Flickr Image Browser</title>
		<link>http://www.markharris.net.au/blog/2008/10/27/silverlight-flickr-image-browser/</link>
		<comments>http://www.markharris.net.au/blog/2008/10/27/silverlight-flickr-image-browser/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 05:53:28 +0000</pubDate>
		<dc:creator>Mark Harris</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[flickrlight]]></category>

		<guid isPermaLink="false">http://www.markharris.net.au/blog/2008/10/27/silverlight-flickr-image-browser/</guid>
		<description><![CDATA[<p>In my last post about <a href="http://www.markharris.net.au/blog/2008/10/26/flickrlight-silverlight-2-compatible-flickr-api/" rel="tag">Flickrlight</a> I mentioned creating a simple <a href="http://markharris.net.au/Silverlight/FlickrBrowser/Index.html">Flickr Image Browser in Silverlight</a>. Feedback is required please.</p> Technorati Tags: <a href="http://technorati.com/tags/silverlight" rel="tag">silverlight</a>,<a href="http://technorati.com/tags/flickr" rel="tag">flickr</a>,<a href="http://technorati.com/tags/flickrlight" rel="tag">flickrlight</a>]]></description>
			<content:encoded><![CDATA[<p>In my last post about <a href="http://www.markharris.net.au/blog/2008/10/26/flickrlight-silverlight-2-compatible-flickr-api/" rel="tag">Flickrlight</a> I mentioned creating a simple <a href="http://markharris.net.au/Silverlight/FlickrBrowser/Index.html">Flickr Image Browser in Silverlight</a>. Feedback is required please.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:57896baa-28c9-4bf2-ba1d-b98448dbcda4" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/silverlight" rel="tag">silverlight</a>,<a href="http://technorati.com/tags/flickr" rel="tag">flickr</a>,<a href="http://technorati.com/tags/flickrlight" rel="tag">flickrlight</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markharris.net.au/blog/2008/10/27/silverlight-flickr-image-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickrlight &#8211; Silverlight 2 compatible Flickr API</title>
		<link>http://www.markharris.net.au/blog/2008/10/26/flickrlight-silverlight-2-compatible-flickr-api/</link>
		<comments>http://www.markharris.net.au/blog/2008/10/26/flickrlight-silverlight-2-compatible-flickr-api/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 13:39:31 +0000</pubDate>
		<dc:creator>Mark Harris</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[flickrlight]]></category>

		<guid isPermaLink="false">http://www.markharris.net.au/blog/2008/10/26/flickrlight-silverlight-2-compatible-flickr-api/</guid>
		<description><![CDATA[<p>In learning Silverlight 2 I needed some self imposed tasks, one such task was to build a simple Flickr image browser, among other things. In doing so as most people would I found a .net <a href="http://www.codeplex.com/FlickrNet">Flicker API called FlickrNet</a>. However when you try to add a reference to FlickrNet from my Silverlight 2 project [...]]]></description>
			<content:encoded><![CDATA[<p>In learning Silverlight 2 I needed some self imposed tasks, one such task was to build a simple Flickr image browser, among other things. In doing so as most people would I found a .net <a href="http://www.codeplex.com/FlickrNet">Flicker API called FlickrNet</a>. However when you try to add a reference to FlickrNet from my Silverlight 2 project I encountered a few issues with projects not loading. However after some research and hacking I was able to <a href="http://www.markharris.net.au/blog/2008/10/23/how-to-convert-a-normal-class-library-project-to-a-silverlight-20-class-library-project/" rel="tag">convert the FlickrNet project to Silverlight</a>. Converting the project was the easy part but it was going to be just too hard to get the entire library working because of its reliance on a lot of calls to methods that are not available in the <a href="http://msdn.microsoft.com/en-us/library/bb404713(VS.95).aspx">Silverlight Core CLR.</a> </p>
<p>Therefore I have had to strip the existing FlickrNet functionality down, I have decided to christen it <strong><em>Flickrlight</em></strong> and now have a simple working demo of the Flickr Browser Application. </p>
<p><a href="http://www.markharris.net.au/blog/wp-content/uploads/2008/10/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Flickrlight Demo" border="0" alt="Flickrlight Demo" src="http://www.markharris.net.au/blog/wp-content/uploads/2008/10/image-thumb.png" width="434" height="484" /></a></p>
<p>&#160; The code is fairly similar to what FlickrNet, for those of you who are familiar with the existing API.</p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> btnGetPhoto_Click(<span style="color: #0000ff">object</span> sender, RoutedEventArgs e)</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span>     PhotoSearchOptions pso = <span style="color: #0000ff">new</span> PhotoSearchOptions();</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span>     pso.Tags = feedURL.Text;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span>     Photo p = <span style="color: #0000ff">new</span> Photo();</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   6:</span>     p.ApiKey = ApiKey;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   7:</span>     p.Secret = SharedSecret;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   8:</span>     p.OnResponseCompleted += p_OnResponseCompleted;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   9:</span>     p.BeginPhotosSearch(pso);</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  10:</span> }</pre>
</p></div>
</div>
<p>One of the few changes is that the calls being made are Asynchronous and hence require the subscription to the Completed Event.</p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> p_OnResponseCompleted(FlickrResponseRecievedCompleteEventArgs&lt;FlickrBase&gt; e)</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> {</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span>     Action bindToList = () =&gt; imageList.ItemsSource = ((Photos)e.ResultValue).PhotoCollection;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span>     <span style="color: #0000ff">this</span>.Dispatcher.BeginInvoke(bindToList);</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span> }</pre>
</p></div>
</div>
<p>&#160;</p>
<p>At this stage all I have done was to begin to move the Search for Photos functionality, however over the next few weeks I will move some more of this functionality across. I will also make <a href="http://www.codeplex.com/">Flickrlight available on Codeplex</a> (unless someone tells me otherwise). Seeing as this will be my first foray into the world of open source if anyone has any experience with what I should be doing here, your help will be greatly appreciated.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:7029b558-00b1-4bb1-b7bc-fdfa14a9a4bc" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/flickrlight" rel="tag">flickrlight</a>,<a href="http://technorati.com/tags/flickr" rel="tag">flickr</a>,<a href="http://technorati.com/tags/.net" rel="tag">.net</a>,<a href="http://technorati.com/tags/silverlight" rel="tag">silverlight</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markharris.net.au/blog/2008/10/26/flickrlight-silverlight-2-compatible-flickr-api/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Devils work, in SILVERLIGHT</title>
		<link>http://www.markharris.net.au/blog/2008/10/25/the-devils-work-in-silverlight/</link>
		<comments>http://www.markharris.net.au/blog/2008/10/25/the-devils-work-in-silverlight/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 22:24:40 +0000</pubDate>
		<dc:creator>Mark Harris</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[quakelight]]></category>

		<guid isPermaLink="false">http://www.markharris.net.au/blog/2008/10/25/the-devils-work-in-silverlight/</guid>
		<description><![CDATA[<p>Hopefully that got your attention. But its not really the devils work. Simon has this theory about why video games and how its the devils work an opinion I do not fully share. Everything in moderation I say including moderation. Anyway I digress , The ninemsn crew has posted a fantastic video of the game [...]]]></description>
			<content:encoded><![CDATA[<p>Hopefully that got your attention. But its not really the devils work. Simon has this theory about why video games and how its the devils work an opinion I do not fully share. Everything in moderation I say including moderation. Anyway I digress , The ninemsn crew has posted a fantastic video of the game QUAKE being ported to SILVERLIGHT yes SILVERLIGHT.</p>
<p style="text-align: center;">
<a href="http://channel9.msdn.com/shows/Continuum/QuakeLightPreview/">QuakeLight Preview Video</a></p>
<p><a href="http://adamkinney.com/blog/374/default.aspx">Adam Kinney has a interview</a> with the developer <a title="Julien Frelat" href="http://www.innoveware.com/projects.html">Julien Frelat</a> about the process. I hope we get to see more in the near future.</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:504f0dad-8758-4726-a0a1-22ab87d70d30" class="wlWriterEditableSmartContent" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/.net">.net</a>,<a rel="tag" href="http://technorati.com/tags/silverlight">silverlight</a>,<a rel="tag" href="http://technorati.com/tags/quakelight">quakelight</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markharris.net.au/blog/2008/10/25/the-devils-work-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MD5CryptoServiceProvider for Silverlight</title>
		<link>http://www.markharris.net.au/blog/2008/10/23/md5cryptoserviceprovider-for-silverlight/</link>
		<comments>http://www.markharris.net.au/blog/2008/10/23/md5cryptoserviceprovider-for-silverlight/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 23:00:25 +0000</pubDate>
		<dc:creator>Mark Harris</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[MD5CryptoServiceProvider]]></category>

		<guid isPermaLink="false">http://www.markharris.net.au/blog/2008/10/23/md5cryptoserviceprovider-for-silverlight/</guid>
		<description><![CDATA[<p>The Silverlight clr does not have a MD5&#160; implementation so your on your own when it comes to “signing” calls to REST based web services, like Flickr. A quick google found a clean implementation written in managed code, targeting the compact framework. The managed MD5CryptoServiceProvider was created by <a title="Flow Group SAS" href="http://www.flowgroup.fr/en/kb/technical/md5.aspx">GL Conseil/Flow Group [...]]]></description>
			<content:encoded><![CDATA[<p>The Silverlight clr does not have a MD5&#160; implementation so your on your own when it comes to “signing” calls to REST based web services, like Flickr. A quick google found a clean implementation written in managed code, targeting the compact framework. The managed MD5CryptoServiceProvider was created by <a title="Flow Group SAS" href="http://www.flowgroup.fr/en/kb/technical/md5.aspx">GL Conseil/Flow Group SAS</a>. It is available for download from their website, I have also made <a href="http://www.markharris.net.au/blog/wp-content/uploads/2008/10/CustomMD5Impl.cs">MD5CryptoServiceProvider Source file available for here for download</a>.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:74310303-770d-41db-9474-073b6a3ad942" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/md5" rel="tag">md5</a>,<a href="http://technorati.com/tags/MD5CryptoServiceProvider" rel="tag">MD5CryptoServiceProvider</a>,<a href="http://technorati.com/tags/silverlight+2.0" rel="tag">silverlight 2.0</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markharris.net.au/blog/2008/10/23/md5cryptoserviceprovider-for-silverlight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To: Convert a normal Class Library Project to a Silverlight 2.0 Class Library Project</title>
		<link>http://www.markharris.net.au/blog/2008/10/23/how-to-convert-a-normal-class-library-project-to-a-silverlight-20-class-library-project/</link>
		<comments>http://www.markharris.net.au/blog/2008/10/23/how-to-convert-a-normal-class-library-project-to-a-silverlight-20-class-library-project/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 14:42:37 +0000</pubDate>
		<dc:creator>Mark Harris</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://www.markharris.net.au/blog/2008/10/23/how-to-convert-a-normal-class-library-project-to-a-silverlight-20-class-library-project/</guid>
		<description><![CDATA[<p><a href="http://www.silverlight.net/"></a>So you want to add a Normal Class Library Project to a Silverlight application, you think to your self how hard could this be despite the Visual Studio Warnings. Well for the most part its fairly simple, however there are a number of problems that I faced when doing exactly that.</p> <p>Thanks to <a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.silverlight.net/"><img style="margin: 0px; display: inline" align="left" src="http://tbn0.google.com/images?q=tbn:2H3WXZoqXRzIFM:http://www.outsource-dotnet.com/images/silverlight.png" width="190" height="140" /></a>So you want to add a Normal Class Library Project to a Silverlight application, you think to your self how hard could this be despite the Visual Studio Warnings. Well for the most part its fairly simple, however there are a number of problems that I faced when doing exactly that.</p>
<p>Thanks to <a target="_blank" href="http://neilmosafi.blogspot.com/2008/03/silverlight-projects-vs-normal-projects.html">Neil Mosafi’s post on converting class library project for Silverlight consumption</a>, I found 2 methods of doing the conversion.</p>
<p>1.) Create a NEW Silverlight&#160; Class Library Project and then ADD your EXISTING code files to the project</p>
<p>2.) Hack the csproj file to change its signature (<a target="_blank" href="http://neilmosafi.blogspot.com/2008/03/silverlight-projects-vs-normal-projects.html">details are courtesy of Neil Mosafi’s post</a>) VS.NET 2008 believes that its a Silverlight Project (don&#8217;t forget the changes needs to be made to both the DEBUG as well as RELEASE sections)</p>
<p>Initially I went about making these changes using method 2 however I kept finding a number of issues relating to duplicate references , especially with the HttpWebRequest object and a few other things. </p>
<p>I also needed to change all non generic collections to use their generic equivalents as all <a target="_blank" href="http://blogs.msdn.com/bclteam/archive/2007/06/26/non-generic-collections-to-be-removed-from-silverlight-inbar-gazit.aspx">non generic collections are not included&#160; in Silverlight 2.0</a></p>
<p>The Serializable attribute is not part of the coreclr, therefore it has to go, XML Serialization is your friend. <a target="_blank" href="http://www.lhotka.net/weblog/SilverlightSerializer.aspx">Rockford Lhotka has started work on an alternative to the Serializable attribute</a> however its extremely limited at this stage, The Silverlight Serializer may suit your needs so do check it out.</p>
<p>The project I was playing with also used a little bit of XPath Navigation and some other System.XML namespace classes that are not part of the cut down version, so I have to change the code to use Linq to XML</p>
<p>There were a whole bunch of other things that I fixed up and was good to go when I realized that the project changes were not referencing the correct mscorlib and system.xml libraries, however the compiler did not seem to mind to much which baffled me. At this point I decided that the safer way was to go down option 1, simply because I thought it would give a much better jumping off point, lo and behold it has. I am pretty close to having it compile correctly for the Silverlight application which I intend to share.</p>
<p>At the end of this all my advice in converting is to go with method 1, as its just much more fool proof.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:18fe6348-2d22-41b0-8730-917d8758f325" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/Silverlight+2.0" rel="tag">Silverlight 2.0</a>,<a href="http://technorati.com/tags/.net" rel="tag">.net</a>,<a href="http://technorati.com/tags/development" rel="tag">development</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markharris.net.au/blog/2008/10/23/how-to-convert-a-normal-class-library-project-to-a-silverlight-20-class-library-project/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

