Welcome to MSDN Blogs Sign in | Join | Help

Writing a Windows Sidebar Gadget in Silverlight-dead simple!

After my forays into writing Sidebar gadgets with WPF using Element host i have to admit i was not looking forward to tying it with silverlight.

The fact i started by downloading a couple of existing samples -that all failed didn't really boost my confidence much either. 

In the end it turned out to be easier than anticipated.  To the point it is almost not worth a blog entry....So what are the steps to creating a Sidebar gadget in Silverlight?

  1. Start Orcas > File New Silverlight Application.  (If you don't have this option see: Orcas Install Woes -and Success
  2. Create New Gadget Directory in C:\Users\Your_name\appdata\local\Microsoft\Windows Sidebar\Gadgets like Silverlight.Gadget
  3. Add the files Created by Orcas to this directory
  4. Add a Gadget.XML that points to the default Testpage.html created by Orcas (See below)
  5. Add the newly created gadget to the Windows Sidebar - Viola you are done!

Thursday i hope to record Scott Barnes creating one that will have options etc.

 

**************Sample Gadget.XML******************************

 

<?xml version="1.0" encoding="utf-8"?>
<gadget>
<name>Silverlight Test</name>
<namespace><!--_locComment_text="{Locked}"-->microsoft.windows</namespace>
<version><!--_locComment_text="{Locked}"-->1.0.0.0</version>
<author name="Chuck">
<info url="http://blogs.msdn.com/charles_sterling" text="Chucks Blog"/>
</author>
<description>Silverlight Sample</description>
<icons>
<icon height="100" width="125" src="Icon.jpg"/>
</icons>
<hosts>
<host name="sidebar">
<base type="HTML" apiVersion="1.0.0" src="TestPage.html"/>
<permissions><!--_locComment_text="{Locked}"-->Full</permissions>
<platform minPlatformVersion="0.3"/>
<defaultImage src="Icon.jpg"/>
</host>
</hosts>
</gadget>

Published Monday, May 14, 2007 9:27 PM by Charles_Sterling

Comments

Monday, May 14, 2007 7:48 AM by scbarnes

# re: Writing a Windows Sidebar Gadget in Silverlight-dead simple!

Why what's happening Thursday? (Kidding).

Now you just ruined my entire demo for thursday :) heheheh

Sunday, May 20, 2007 8:18 AM by Community Blogs

# Points of interest #8

Another week has shot by. Didn&#39;t have any time to look at Silverlight although I have managed to

Sunday, May 20, 2007 11:45 AM by Community Blogs

# Silverlight Cream for May 20, 2007

Cream , as in &#39;Pick of the Litter&#39; is always subjective, but this is my list for today as I view

Monday, May 21, 2007 7:43 AM by Silverlight City

# Silverlight news - May 21, 2007

Silverlight news - May 21, 2007

Sunday, July 08, 2007 9:53 PM by Christian Longstaff's Blog

# Australia Partner Conference Countdown Gadget

Attending ReMix last month inspired me to create this basic Vista sidebar gadget based on Michael's countdown

Sunday, July 08, 2007 10:18 PM by Noticias externas

# Australia Partner Conference Countdown Gadget

Attending ReMix last month inspired me to create this basic Vista sidebar gadget based on Michael&#39;s

Tuesday, September 18, 2007 4:34 PM by Stay hungry ... stay foolish ... stay funny :)

# Microsoft Gadget 2007 Romania

In perioada 10 septembrie 2007 – 14 noiembrie 2007 Microsoft Romania organizeaza concursul "Microsoft...

New Comments to this post are disabled
 
Page view tracker