<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Silverlight Projects</title>
	<atom:link href="http://silverlightprojects.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://silverlightprojects.wordpress.com</link>
	<description>The RIA experience</description>
	<lastBuildDate>Thu, 12 Nov 2009 17:48:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='silverlightprojects.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Silverlight Projects</title>
		<link>http://silverlightprojects.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://silverlightprojects.wordpress.com/osd.xml" title="Silverlight Projects" />
	<atom:link rel='hub' href='http://silverlightprojects.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Dynamically load an .xap into an silverlight app (2)</title>
		<link>http://silverlightprojects.wordpress.com/2009/11/12/dynamically-load-an-xap-into-an-silverlight-app-2/</link>
		<comments>http://silverlightprojects.wordpress.com/2009/11/12/dynamically-load-an-xap-into-an-silverlight-app-2/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 17:41:24 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[27372874]]></category>

		<guid isPermaLink="false">http://silverlightprojects.wordpress.com/?p=57</guid>
		<description><![CDATA[Visual studio solution, Live demo (The code used in XapLoader class is explained in an earlier blog entry) The XapLoader class is based on the class of pbrooks. I have added preloading support and minimized the .xap size.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightprojects.wordpress.com&amp;blog=10319285&amp;post=57&amp;subd=silverlightprojects&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://cid-4d51b97b92bafce2.skydrive.live.com/self.aspx/.Public/Silverlight%20Projects/XapLoaderSamples.zip" target="_blank">Visual studio solution</a>, <a title="Live demo" href="http://www.user200.lima-city.de/SilverlightOnline/Dynamicallyloadxap/XapLoaderSampleTestPage.html" target="_blank">Live demo</a></p>
<p>(The code used in XapLoader class is explained in an <a href="http://silverlightprojects.wordpress.com/2009/11/07/dynamically-load-an-xap-into-a-silverlight-app/">earlier blog entry</a>)</p>
<p>The XapLoader class is based on <a href="http://pagebrooks.com/archive/2009/05/17/a-smaller-xap-preloader-for-silverlight.aspx/">the class of pbrooks.</a> I have added preloading support and minimized the .xap size.</p>
<p><pre class="brush: csharp;">
this.Stream = e.Result;

// Host content in a contentPresenter
this.cpHost.Content = instance;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightprojects.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightprojects.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/silverlightprojects.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/silverlightprojects.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightprojects.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightprojects.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightprojects.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightprojects.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightprojects.wordpress.com&amp;blog=10319285&amp;post=57&amp;subd=silverlightprojects&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightprojects.wordpress.com/2009/11/12/dynamically-load-an-xap-into-an-silverlight-app-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31c2f686dc70b835cd2e202f1516c019?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dennis</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamically load an .xap into a silverlight app</title>
		<link>http://silverlightprojects.wordpress.com/2009/11/07/dynamically-load-an-xap-into-a-silverlight-app/</link>
		<comments>http://silverlightprojects.wordpress.com/2009/11/07/dynamically-load-an-xap-into-a-silverlight-app/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 17:14:43 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://silverlightprojects.wordpress.com/?p=36</guid>
		<description><![CDATA[Visual studio solution, Live demo (Update: You can also use XapLoader, a helper class for loading .xap files into silverlight apps) This article shows how to dynamically load an .xap into a silverlight app. Using this technique you can use create a small (&#60; 10 KB) preloader application which shows a loading bar or some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightprojects.wordpress.com&amp;blog=10319285&amp;post=36&amp;subd=silverlightprojects&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://cid-4d51b97b92bafce2.skydrive.live.com/self.aspx/.Public/Silverlight%20Projects/XapLoaderSamples.zip" target="_blank">Visual studio solution</a>, <a title="Live demo" href="http://www.user200.lima-city.de/SilverlightOnline/Dynamicallyloadxap/XapLoaderSampleTestPage.html" target="_blank">Live demo</a></p>
<p>(Update: You can also use <a href="http://silverlightprojects.wordpress.com/2009/11/12/dynamically-load-an-xap-into-an-silverlight-app-2/">XapLoader</a>, a helper class for loading .xap files into silverlight apps)</p>
<p>This article shows how to dynamically load an .xap into a silverlight app.</p>
<p>Using this technique you can use create a small (&lt; 10 KB) preloader application which shows a loading bar or some fancy animations while the user waits for the big main app.<br />
Furthermore it enables you to divide a big silverlight app into some small ones which are dynamically loaded when they are needed.</p>
<p>The loading of the .xap file is done in two steps. First we download the .xap file from the server (some standard webclient stuff).</p>
<p><pre class="brush: csharp;">
// &quot;?t=&quot; + DateTime.Now.Ticks.ToString() to prevent caching by browser
this.Uri = new Uri(&quot;ImagePresenter.xap?t=&quot; + DateTime.Now.Ticks.ToString(), UriKind.RelativeOrAbsolute);
this.RootAssembly = &quot;ImagePresenter.dll&quot;;
this.TypeName = &quot;ImagePresenter.MainPage&quot;;

// Use WebClient to download the .xap file (and get the stream)
WebClient wc = new WebClient();
wc.DownloadProgressChanged += new DownloadProgressChangedEventHandler(wc_DownloadProgressChanged);
wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
wc.OpenReadAsync(this.Uri);
</pre></p>
<p>Then we use the following code to start the app.</p>
<p><pre class="brush: csharp;">
this.Stream = e.Result;

// Get the stream of the manifest (which lists the dlls included in the .xap)
// see http://blogs.msdn.com/katriend/archive/2008/03/16/silverlight-2-structure-of-the-new-xap-file-silverlight-packaged-application.aspx
StreamResourceInfo manifestResourceInfo = Application.GetResourceStream(
     new StreamResourceInfo(this.Stream, null),
     new Uri(&quot;AppManifest.xaml&quot;, UriKind.Relative));

XmlReader reader = XmlReader.Create(manifestResourceInfo.Stream);
Assembly asm = null;
StreamResourceInfo assemblyStream = new StreamResourceInfo(this.Stream, &quot;application/binary&quot;);

// Step through all .dlls
while (reader.Read())
{
     // If it's an assembly part...
     if (reader.IsStartElement(&quot;AssemblyPart&quot;))
     {
          reader.MoveToAttribute(&quot;Source&quot;);
          reader.ReadAttributeValue();

          // ...get the stream
          StreamResourceInfo si = Application.GetResourceStream(assemblyStream, new Uri(reader.Value, UriKind.Relative));
          AssemblyPart p = new AssemblyPart();

          // If it's the main assembly,...
          if (reader.Value == this.RootAssembly)
          {
               // ...load it and remember it for later use
               asm = p.Load(si.Stream);
          }
          else
          {
               // Otherwise just load it
               p.Load(si.Stream);
          }
     }
}

if (asm == null)
{
     throw new InvalidOperationException(&quot;Could not find specified assembly.&quot;);
}

UIElement instance = asm.CreateInstance(this.TypeName) as UIElement;
if (instance == null)
{
     throw new InvalidOperationException(&quot;Could not create instance of requested type.&quot;);
}

// Host content in a contentPresenter
this.cpHost.Content = instance;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightprojects.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightprojects.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/silverlightprojects.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/silverlightprojects.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightprojects.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightprojects.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightprojects.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightprojects.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightprojects.wordpress.com&amp;blog=10319285&amp;post=36&amp;subd=silverlightprojects&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightprojects.wordpress.com/2009/11/07/dynamically-load-an-xap-into-a-silverlight-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31c2f686dc70b835cd2e202f1516c019?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dennis</media:title>
		</media:content>
	</item>
		<item>
		<title>Project started: Yune Web OS</title>
		<link>http://silverlightprojects.wordpress.com/2009/11/07/silverlight-project-started-yune-web-os/</link>
		<comments>http://silverlightprojects.wordpress.com/2009/11/07/silverlight-project-started-yune-web-os/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 14:08:45 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Yune web OS Dev Log]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[web OS]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[About a week ago I have started a new silverlight project named &#8220;Yune&#8221;. It should be a web OS just like Live Mesh, g.ho.st, iCloud or eyeOS. The main structure is simple. Yune uses a silverlight client application which is connected via RIA services with an ASP.NET server (The so-called cloud). During the past days [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightprojects.wordpress.com&amp;blog=10319285&amp;post=1&amp;subd=silverlightprojects&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>About a week ago I have started a new silverlight project named &#8220;Yune&#8221;. It should be a web OS just like <a title="Live Mesh" href="https://www.mesh.com" target="_blank">Live Mesh</a>, <a title="g.ho.st" href="http://g.ho.st/" target="_blank">g.ho.st</a>, <a title="iCloud" href="http://icloud.com" target="_blank">iCloud</a> or <a title="eyeOS" href="http://www.eyeos.com/" target="_blank">eyeOS</a>.</p>
<p>The main structure is simple. Yune uses a silverlight client application which is connected via RIA services with an ASP.NET server (The so-called cloud).</p>
<p>During the past days I have set up a basic Feature Listing and began writing the first code. Fortunately, I could use some code from older project, so that the basic window and application management is already done.</p>
<div id="attachment_5" class="wp-caption alignnone" style="width: 310px"><a href="http://silverlightprojects.files.wordpress.com/2009/11/2009-11-07-yune-screen-overview.png" target="_blank"><img class="size-medium wp-image-5" title="2009-11-07-Yune-Screen-Overview" src="http://silverlightprojects.files.wordpress.com/2009/11/2009-11-07-yune-screen-overview.png?w=300&#038;h=217" alt="Yune Screen Overview" width="300" height="217" /></a><p class="wp-caption-text">Yune Screen Overview</p></div>
<p>The above image shows the screen of the Yune web OS. Two integrated apps, the text editor and the Yune explorer are currently running.</p>
<p>The apps were packaged as external .xap files on the server and dynamically downloaded and executed when I started them using the task bar.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/silverlightprojects.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/silverlightprojects.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/silverlightprojects.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/silverlightprojects.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/silverlightprojects.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/silverlightprojects.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/silverlightprojects.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/silverlightprojects.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=silverlightprojects.wordpress.com&amp;blog=10319285&amp;post=1&amp;subd=silverlightprojects&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://silverlightprojects.wordpress.com/2009/11/07/silverlight-project-started-yune-web-os/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31c2f686dc70b835cd2e202f1516c019?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dennis</media:title>
		</media:content>

		<media:content url="http://silverlightprojects.files.wordpress.com/2009/11/2009-11-07-yune-screen-overview.png?w=300" medium="image">
			<media:title type="html">2009-11-07-Yune-Screen-Overview</media:title>
		</media:content>
	</item>
	</channel>
</rss>
