Subscribe to our RSS Feeds

Welcome to Silverlight Blog!

Hello Visitors !

You found a Blog about Microsoft Silverlight by Sascha Baumann,
Freelance Software Developer based Berlin, Germany.

If you need development, coaching or a
second opinion - Just contact me.

Have fun looking around :o)

Sascha Baumann

Silverlight in Webslices

Add comments

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.

silverlightwebslice

Have fun playing arund with it :o )

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

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Various Dezember 31st 2009

2 Responses to “Silverlight in Webslices”

  1. Silverlight in Webslices Says:

    [...] from Sascha Baumann      more here [...]

  2. Silverlight in Webslices | Silverlight Blog iSilverlight Says:

    [...] is the original post:  Silverlight in Webslices | Silverlight Blog By admin | category: Silverlight, microsoft silverlight | tags: businesses-rely, did-not, [...]

Leave a Reply