I had a little inspiration during the holidays – tried it out – and it worked.
With Internet Explorer 8 Microsoft introduced a new feature called Webslices. Little pieces of information within your browser-bar (most commonly) about site-updates.
Now I tried to put a Silverlight app into a Webslice.
Herefor I created a new Silverlight App with a testpage like this (created automatically)
<form id="form1" style="height: 100%;"> <div id="silverlightControlHost"> <object width="100%" height="100%" type="application/x-shockwave-flash"> <param name="source" value="ClientBin/SilverlightWebslice.xap" /> <param name="onError" value="onSilverlightError" /><param name="background" value="white" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> </object></div></form>
In my Silverlight-App I placed a Textblock saying “Welcome to my Silverlight Webslice”.
<Grid x:Name="LayoutRoot"> <TextBlock Text="Welcome to my Silverlight Webslice"></TextBlock> </Grid>
And then, in default.aspx I put the Webslices-Code
<form id="form1"> <div id="SliceID" class="hslice" style="display: none"> <span class="entry-title">Silverlight Slice <a style="display: none" rel="entry-content" href="SilverlightWebsliceTestPage.html">Alternative</a> </div></form>
and voila, a silverlight Webslice.
Have fun playing arund with it
)
Before I forget, there is an alternative for Firefox Browser called WebChunks. Unfortunately it doesn’t work for the current Version at the moment, hope the developer will keep on working on it.
Sascha

Dezember 31st, 2009 at 4:38 PM
[...] from Sascha Baumann     more here [...]
Dezember 31st, 2009 at 8:09 PM
[...] is the original post:Â Silverlight in Webslices | Silverlight Blog By admin | category: Silverlight, microsoft silverlight | tags: businesses-rely, did-not, [...]