Silverlight Display Web Part
I’ll be the first to admit that I’m no Silverlight guru – all those sliding images and reflecting chrome are a bit fancy for my simple country-boy tastes. But I was floored when one of our graphic artists brought me a few samples of some new marketing materials and showed me how he did it. Allright, I give in, this stuff is really cool.
I did some quick searching on the web and all I could come up with was some rough web parts to show Silverlight web sites inside an iFrame. I can do that with a page viewer web part, thank you very much, but that defeats the purpose. Besides, I don’t like having unmanaged paths on my SharePoint servers; if you can’t build it into a web part, server control, or user control then it has no business living on my SharePoint boxes (I know, it probably won’t hurt anything but it’s one of my pet peeves).
Instructions for deployment are in the ReadMe file. The most important thing to remember is that the basic VS08 template stuffs everything into a single folder. You’ll need to use virtual paths to get it working inside a SharePoint web application, so be sure to change any fixed references in the default.html.js and scene.xaml files to the correct relative paths (such as ‘/bin/TestProject/image1.png’). And don’t forget to change the control id value in the default.html.js file if you change it in the web part so it will know where to find the right control on the page.
I’m sure there are probably already better solutions out there but I couldn’t find them in the first 100 or so search results and the new CodePlex search is about useless. If you know of anything better please post a comment and enlighten the rest of us Silverlight noobs. As always, if you have questions, issues or feature enhancements, post a comment and you will be heard (I may not do anything about it but at least I promise to read it). Oh, and if you want the source code, just email me and I’ll zip it up and send it to ya.