Skip to main content
Home Forums Silverlight Programming Programming with .NET - General How to host Silverlight gadget in Vista side bar
1 replies. Latest Post by luisabreu on July 10, 2007.
(0)
Dinesh C...
Member
104 points
98 Posts
07-10-2007 9:24 AM |
Hello All,
I would like to know how to host silverlight 1.1 project as sidebar gadget ..
I created a directory in “%userprofile%\AppData\Local\Microsoft\Windows Sidebar\Gadgets” path with name HelloWorld.gadget .And also created simple project in Silverlight Alpha 1.1 with textblock control with text property set to "First HelloWorld Gadget " text......
. So i would like to know which file i should add to “%userprofile%\AppData\Local\Microsoft\Windows Sidebar\Gadgets\HelloWorld.gadget ” directory from my Silverlight project or is it necessary to add whole silverlight solution in this directory.
What should i specify in the source property of .xml (manifest file ).
I waiting for reply.
luisabreu
Participant
1676 points
612 Posts
07-10-2007 6:22 PM |
hello.
a gadget is always an html page. so, you just need to build your solution and then copy the html+html.js+clientbin folder to your gadget folder. regarding the manifest, just point it to the html page. there are some gotchas regarding silverlight and gadgets. i've written about some here:
http://msmvps.com/blogs/luisabreu/archive/2007/05/19/building-my-first-silverlight-sidebar-gadget.aspx