Skip to main content

Microsoft Silverlight

Answered Question Silverlight 3 control in a Sharepoint Webpart does not displayRSS Feed

(0)

helterskelter
heltersk...

Member

Member

0 points

3 Posts

Silverlight 3 control in a Sharepoint Webpart does not display

I have coded a simple web part and have added a simple silverlight 3 control to it using LiteralControl. The code is from Karine Bosch's blog (http://karinebosch.wordpress.com/2009/07/17/integrating-silverlight-3-in-sharepoint-2007/). The code is as is from this blog but I cannot see my silverlight control on the webpart. The mime types are fine. The silverlight control works fine when I open it in a test page. When I try and access the xap file through the browser, I get the option to download it, so it is finding the xap file. The javascript on the page shows no errors. Any ideas anyone?

helterskelter
heltersk...

Member

Member

0 points

3 Posts

Re: Silverlight 3 control in a Sharepoint Webpart does not display

 Also, the sharepoint log shows no errors.

helterskelter
heltersk...

Member

Member

0 points

3 Posts

Answered Question

Re: Re: Silverlight 3 control in a Sharepoint Webpart does not display

for anyone else who runs into this issue.. height and width... make sure you set the height and width of your div tag to be exactly that of your user control. Cannot believe I spent this much time over some thing this small.

sfbarron
sfbarron

Member

Member

2 points

1 Posts

Re: Re: Silverlight 3 control in a Sharepoint Webpart does not display

Thanks for posting this.  I had this same issue and it took me almost 2 days to figure out why.  Possibly longer if I didn't come across this thread.  I'm not sure if it's the object tag or the Silverlight plugin itself being so picky.

spmoran
spmoran

Member

Member

2 points

1 Posts

Re: Silverlight 3 control in a Sharepoint Webpart does not display

Make sure both js files are in the _layouts subfolder you created. That's what worked for me.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities