<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>IdealProgrammer.com &#187; Silverlight</title> <atom:link href="http://idealprogrammer.com/category/net-languages/silverlight/feed/" rel="self" type="application/rss+xml" /><link>http://idealprogrammer.com</link> <description>Take a Little Action each Day to Transform Yourself into the Ideal Programmer</description> <lastBuildDate>Sun, 22 Apr 2012 16:50:40 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>creating a widget for windows 7 using silverlight</title><link>http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/</link> <comments>http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/#comments</comments> <pubDate>Thu, 11 Nov 2010 16:06:07 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[Silverlight]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=2864</guid> <description><![CDATA[<p>At its simplest form a Windows gadget is comprised of a .html file and a .xml file. Think of it as a mini-web site, with the .html file representing the site&#039;s visual components and the .xml file the gadget config or definition. Of course, as a web site, most gadgets are going to have the usual suspects: css, JavaScript, image files, and&#8212;best of all&#8212;Silverlight.</p><p><a
href="http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/" class="more-link">Read more on creating a widget for windows 7 using silverlight&#8230;</a></p><p><a
href="http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/">creating a widget for windows 7 using silverlight</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/' rel='bookmark' title='Permanent Link: Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert'>Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> <small>This free six-hour video series is entitled - "Look What...</small></li><li><a
href='http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/' rel='bookmark' title='Permanent Link: Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)'>Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)</a> <small>Interested in Silverlight 3? Here you will find four hours...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-studio-c/visual-studio-c-july-15-2009/' rel='bookmark' title='Permanent Link: Visual Studio c# &#8211; July 15, 2009:ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight 3,IIS Search Engine Optimization Toolkit'>Visual Studio c# &#8211; July 15, 2009:ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight 3,IIS Search Engine Optimization Toolkit</a> <small>Scott Gu on: ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a
href="http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/">creating a widget for windows 7 using silverlight</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/' rel='bookmark' title='Permanent Link: Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert'>Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> <small>This free six-hour video series is entitled - "Look What...</small></li><li><a
href='http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/' rel='bookmark' title='Permanent Link: Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)'>Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)</a> <small>Interested in Silverlight 3? Here you will find four hours...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-studio-c/visual-studio-c-july-15-2009/' rel='bookmark' title='Permanent Link: Visual Studio c# &#8211; July 15, 2009:ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight 3,IIS Search Engine Optimization Toolkit'>Visual Studio c# &#8211; July 15, 2009:ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight 3,IIS Search Engine Optimization Toolkit</a> <small>Scott Gu on: ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p>At its simplest form a Windows gadget is comprised of a .html file and a .xml file. Think of it as a mini-web site, with the .html file representing the site&#039;s visual components and the .xml file the gadget config or definition. Of course, as a web site, most gadgets are going to have the usual suspects: css, JavaScript, image files, and&mdash;best of all&mdash;Silverlight.</p><p>The purpose of this post is to allow me to do some research on what Windows gadgets are, how to write them, and, most importantly, how to leverage Silverlight to make gadget development easier and more fun.</p><h4>What is a Windows Gadget?</h4><p>When I ask this question, I mean what is a Windows gadget, <em>really</em>? I already know <em>what</em> they are, but what&#039;s inside the .gadget file? It&#039;s easy to see. Gadget files, which use the .gadget file extension, are just compressed .zip files (much like a .xap in Silverlight). If you change the .gadget extension to .zip, you can then view the files inside just like any other ZIP archive.</p><p>Conversely, when you install a .gadget file, its contents are uncompressed to the following location:</p><p><em>C:\Users\&lt;username&gt;\AppData\Local\Microsoft\Windows Sidebar\Gadgets</em></p><p>I&#039;ll take a quick look at <a
href="http://gallery.live.com/liveItemDetail.aspx?li=8e134119-7320-4d3b-a5b0-60b025db3956&amp;bt=1">The Weather Channel gadget</a> (one of the best, IMO):</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image.png" width="517" height="247" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><p>As you can see, it has all the basic components of a standard web site. There are multiple .html files because this gadget, like many others, has a variety of views, each one based on the different gadget states: docked, undocked, fly-out (floating).</p><div
id="sidebar"></p><div
style="width: 141px; margin-left: auto; margin-right: auto"><a
href="http://www.msdnevents.com/wp7devlaunch/"><img
align="middle" src="http://www.itscodingtime.com/images/wp7/wp7_signature_banner_sm.jpg" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" alt="" /></a></div><h1>About Me</h1><div
class="sidebar-box"><table
border="0" cellspacing="5" summary="About me" cellpadding="3" width="100%"><tbody><tr><td
valign="top" align="center" style="width: 20%"><img
alt="Scott Marlowe" align="middle" src="http://www.scottmarlowe.com/images/me/DSCF2278-closeup.JPG" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></td><td
style="line-height: 1.2; width: 80%; letter-spacing: 0px; font-size: 11px; vertical-align: top">I&#039;m Scott Marlowe. I write software.<br
/> <a
title="twitter" href="http://www.twitter.com/scottmarlowe"><img
alt="twitter" src="http://idealprogrammer.com/images/twitter/twitter-gloss.png" style="border-bottom: medium none; border-left: medium none; margin-top: 30px; width: 35px; height: 35px; border-top: medium none; border-right: medium none" /></a> <a
title="stackoverflow" href="http://stackoverflow.com/users/1683/scottmarlowe"><img
alt="stackoverflow" src="http://idealprogrammer.com/images/stackoverflow/stackoverflow.png" style="border-bottom: medium none; border-left: medium none; margin-top: 30px; width: 35px; height: 35px; border-top: medium none; border-right: medium none" /></a></td></tr></tbody></table></div><h1>Tags</h1><p><script language="javascript" type="text/javascript">

	// IE doesn't like the $ notation, so use 'jQuery' keyword instead
	jQuery(document).ready(function() {

		var silverlightControlHost = document.getElementById('silverlightTagCloudControlHost');
		var sidebarWidth = jQuery("#sidebar").css("width");
		sidebarWidth = parseInt(sidebarWidth); // removes the "px" at the end

		sidebarWidth -= 10; // bit of a tweak based on the ict template, this will keep the control from overflowing the right border

		// resize the control host, NOT the control itself
		// neither Firefox nor IE does an inital resize when the page is loaded, so we'll set the initial width ourselves
		silverlightControlHost.style.width = sidebarWidth + "px";
	});

	function ResizeControl() {

		var silverlightControl = document.getElementById('silverlightTagCloud');
		if (silverlightControl == null) return;

		var sidebarWidth = jQuery("#sidebar").css("width");
		newCtrlWidth = parseInt(sidebarWidth); // removes the "px" at the end
		newCtrlWidth -= 10; // some tweaking just for this site

		silverlightControl.content.JStoSLBridge.UpdateControlSize(newCtrlWidth); // reminder: don't need "px" at the end
	}

	function UpdateTagCloudSize() {

		ResizeControl();
	}

	// addEvent function by John Resig: http://ejohn.org/projects/flexible-javascript-events/
	function addEvent(obj, type, fn) {
		if (obj.attachEvent) {
			obj['e' + type + fn] = fn;
			obj[type + fn] = function() { obj['e' + type + fn](window.event); }
			obj.attachEvent('on' + type, obj[type + fn]);
		}
		else
			obj.addEventListener(type, fn, false);
	}

	// add Resize event handler
	addEvent(window, 'resize', function(event) {
		UpdateTagCloudSize();
	});
</script></p><div
id="silverlightTagCloudControlHost" style="width: 225px; height: 100px"><a
href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0" style="text-decoration: none"><img
alt="Get Microsoft Silverlight" src="http://go.microsoft.com/fwlink/?LinkId=108181" style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" /> </a><iframe
id="_sl_historyFrame" style="border-bottom: 0px; border-left: 0px; width: 0px; height: 0px; visibility: hidden; border-top: 0px; border-right: 0px"></iframe></div><h1>Popular Posts &amp; Comments</h1><div
class="tabbox"><div
id="ctl00_ctl23" class="ajax__tab_yuitabview-theme ajax__tab_container ajax__tab_default" style="border-bottom-style: none; border-right-style: none; border-top-style: none; visibility: visible; border-left-style: none"><div
id="ctl00_ctl23_header" class="ajax__tab_header"><span
id="ctl00_ctl23_ctl00_tab" class="ajax__tab_active"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_ctl00" class="ajax__tab_tab">Popular Posts</span></span></span></span><span
id="ctl00_ctl23_TabPanel2_tab"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_TabPanel2" class="ajax__tab_tab">Scott&#039;s Favs</span></span></span></span><span
id="ctl00_ctl23_ctl01_tab"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_ctl01" class="ajax__tab_tab">Comments</span></span></span></span></div><div
id="ctl00_ctl23_body" class="ajax__tab_body"><div
id="ctl00_ctl23_ctl00" class="ajax__tab_panel" style="visibility: visible"><ul><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a><br
/> <font
size="-5">by scottmarlowe (24063 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx" style="font-size: 8pt; font-weight: bold">Writing a (Completely Useless) Windows 7 Gadget using Silverlight</a><br
/> <font
size="-5">by scottmarlowe (13764 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Silverlight-Live-Comment-Preview-Control.aspx" style="font-size: 8pt; font-weight: bold">Silverlight Live Comment Preview Control</a><br
/> <font
size="-5">by scottmarlowe (10655 views)</font></li><li><a
href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx" style="font-size: 8pt; font-weight: bold">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a><br
/> <font
size="-5">by scottmarlowe (9879 views)</font></li><li><a
href="http://www.itscodingtime.com/post/A-Silverlight-2-to-Silverlight-3-Checklist.aspx" style="font-size: 8pt; font-weight: bold">A Silverlight 2 to Silverlight 3 Upgrade Checklist</a><br
/> <font
size="-5">by scottmarlowe (9810 views)</font></li><li><a
href="http://www.itscodingtime.com/post/My-Developers-Toolbox.aspx" style="font-size: 8pt; font-weight: bold">My Developer&#039;s Toolbox</a><br
/> <font
size="-5">by scottmarlowe (9370 views)</font></li><li><a
href="http://www.itscodingtime.com/post/The-different-ways-to-host-a-WCF-Service-Application-in-a-Web-App.aspx" style="font-size: 8pt; font-weight: bold">The different ways to host a WCF Service Application in a Web App</a><br
/> <font
size="-5">by scottmarlowe (8796 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio Code Analysis vs. FxCop vs. StyleCop&hellip; what&#039;s the diff?</a><br
/> <font
size="-5">by scottmarlowe (8729 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-2008-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2008 Shortcuts</a><br
/> <font
size="-5">by scottmarlowe (8537 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Building-a-JavaScript-to-Silverlight-Bridge.aspx" style="font-size: 8pt; font-weight: bold">How to build a JavaScript to Silverlight Bridge</a><br
/> <font
size="-5">by scottmarlowe (8181 views)</font></li></ul></div><div
id="ctl00_ctl23_TabPanel2" class="ajax__tab_panel" style="display: none; visibility: hidden"><ul><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Interface-vs-Virtual-vs-Abstract.aspx" style="font-size: 8pt; font-weight: bold">Interface vs. Virtual vs. Abstract</a><br
/> <font
size="-5">A refresher on these sometimes confusing keywords.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/A-Windows-Phone-7-Silverlight-TagList.aspx" style="font-size: 8pt; font-weight: bold">A Windows Phone 7 Silverlight TagList</a><br
/> <font
size="-5">A Silverlight Windows Phone 7 app to display blog tags in a list.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Getting-Started-with-Windows-Phone-7-Development.aspx" style="font-size: 8pt; font-weight: bold">Getting Started with Windows Phone 7 Development</a><br
/> <font
size="-5">Get started with apps for the Windows Phone 7 platform.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Getting-Started-with-Android-Development.aspx" style="font-size: 8pt; font-weight: bold">Getting Started with Android Development</a><br
/> <font
size="-5">Get started writing apps for the Android platform.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Adding-ELMAH-to-your-ASPNET-Web-Site.aspx" style="font-size: 8pt; font-weight: bold">Adding ELMAH to your ASP.NET Web Site</a><br
/> <font
size="-5">Add ELMAH exception handling to your site.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a><br
/> <font
size="-5">Keyboard shortcuts for Visual Studio 2010.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Coding-Standards-Naming-Conventions.aspx" style="font-size: 8pt; font-weight: bold">Coding Standards &amp; Conventions</a><br
/> <font
size="-5">Every developer or development group should have standards.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Podcasts.aspx" style="font-size: 8pt; font-weight: bold">Podcasts</a><br
/> <font
size="-5">Some of my favorite tech podcasts.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/My-Developers-Toolbox.aspx" style="font-size: 8pt; font-weight: bold">My Developer&#039;s Toolbox</a><br
/> <font
size="-5">My development tools of choice.</font></li></ul></div><div
id="ctl00_ctl23_ctl01" class="ajax__tab_panel" style="display: none; visibility: hidden"><ul
id="recentComments" class="recentComments"><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Using-all-of-the-WPF-Colors-in-Silverlight.aspx">Using all of the WPF Colors in Silverlight</a> (4)<br
/> Ian Hern wrote: This is awesome, thanks. <a
class="moreLink" href="http://www.itscodingtime.com/post/Using-all-of-the-WPF-Colors-in-Silverlight.aspx#id_64d33e26-9ce0-46c0-be51-8c8b89f1e7c5">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx">Writing a (Completely Useless) Windows 7 Gadget using Silverlight</a> (8)<br
/> digitalpbk wrote: Great info, but if you want to make a simple usefu&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx#id_c7070c39-3b2e-4e06-9203-147b1fd87b92">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx">Setting up a Continuous Integration System, Part 9: Conclusion</a> (2)<br
/> <a
href="http://www.itscodingtime.com/" rel="nofollow">Scott Marlowe</a> wrote: Nasir, It&#039;s been a long time since I&#039;ve played &hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx#id_88a731c2-d665-4747-b43a-b01d18833030">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx">Setting up a Continuous Integration System, Part 9: Conclusion</a> (2)<br
/> Nasir wrote: This is a very useful resource thanks for sharing.&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx#id_62012d5c-1f81-4b02-b37a-69e76f91382e">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/BlogEngineNET-GoDaddy-and-Email-Settings.aspx">BlogEngine.NET, GoDaddy, and Email Settings</a> (1)<br
/> prettystrangeguy wrote: Nice! That worked for me also. Thanks for this po&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/BlogEngineNET-GoDaddy-and-Email-Settings.aspx#id_9fb97dd0-16b7-4cf7-a79a-aeacf79ecb82">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Insufficient-available-memory-to-meet-the-expected-demands-of-an-operatione280a6.aspx">Insufficient available memory to meet the expected demands of an operation&hellip;</a> (1)<br
/> Thedaril wrote: Salut, the solution is to turoff your vs and rest&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Insufficient-available-memory-to-meet-the-expected-demands-of-an-operatione280a6.aspx#id_8149b3b4-c1b0-41e7-83bc-c466ad0ee7b3">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a> (9)<br
/> <a
href="http://www.netosting.in/" rel="nofollow">Chandrasekar</a> wrote: thanks scott, now the difference is clear to me, e&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx#id_5d62316f-4058-434d-8185-df8b3778ebcb">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx">Visual Studio Code Analysis vs. FxCop vs. StyleCop&hellip; what&#039;s the diff?</a> (3)<br
/> <a
href="http://www.nitrix-reloaded.com/" rel="nofollow">Nithin Mohan T K</a> wrote: VS2010 professional doesn&#039;t have code analysis. VS&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx#id_43e770fb-ce26-4fc9-a55a-d7a3622a07a5">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Silverlight-to-WCF-Cross-Domain-SecurityException.aspx">Silverlight to WCF Cross Domain SecurityException</a> (3)<br
/> Michael Bredbury wrote: Thanks for this info Scott, saved me hours&#8230;no do&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Silverlight-to-WCF-Cross-Domain-SecurityException.aspx#id_6159cc80-8a8f-4808-9ed4-42f7f6d6555c">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a> (9)<br
/> Larry wrote: I had been banging my head on the wall for several&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx#id_5610208d-7a01-45c9-8f65-af8d7ea52deb">[More]</a></li></ul></div></div></div></div><h1>Categories</h1><div
id="Categories"><ul
id="categorylist"><li><a
title="Category: .NET" href="http://www.itscodingtime.com/category/NET.aspx">.NET</a></li><li><a
title="Category: Android" href="http://www.itscodingtime.com/category/Android.aspx">Android</a></li><li><a
title="Category: Best Practices" href="http://www.itscodingtime.com/category/Best-Practices.aspx">Best Practices</a></li><li><a
title="Category: BlogEngine.NET" href="http://www.itscodingtime.com/category/BlogEngineNET.aspx">BlogEngine.NET</a></li><li><a
title="Category: C#" href="http://www.itscodingtime.com/category/C.aspx">C#</a></li><li><a
title="Category: coding standards" href="http://www.itscodingtime.com/category/coding-standards.aspx">coding standards</a></li><li><a
title="Category: Continuous Integration" href="http://www.itscodingtime.com/category/Continuous-Integration.aspx">Continuous Integration</a></li><li><a
title="Category: CruiseControl.NET" href="http://www.itscodingtime.com/category/CruiseControlNET.aspx">CruiseControl.NET</a></li><li><a
title="Category: Debugging" href="http://www.itscodingtime.com/category/Debugging.aspx">Debugging</a></li><li><a
title="Category: Deployment" href="http://www.itscodingtime.com/category/Deployment.aspx">Deployment</a></li><li><a
title="Category: Gadgets" href="http://www.itscodingtime.com/category/Gadgets.aspx">Gadgets</a></li><li><a
title="Category: Hardware" href="http://www.itscodingtime.com/category/Hardware.aspx">Hardware</a></li><li><a
title="Category: Javascript" href="http://www.itscodingtime.com/category/Javascript.aspx">Javascript</a></li><li><a
title="Category: Performance" href="http://www.itscodingtime.com/category/Performance.aspx">Performance</a></li><li><a
title="Category: Programming" href="http://www.itscodingtime.com/category/Programming.aspx">Programming</a></li><li><a
title="Category: QuickTips" href="http://www.itscodingtime.com/category/QuickTips.aspx">QuickTips</a></li><li><a
title="Category: Reflection" href="http://www.itscodingtime.com/category/Reflection.aspx">Reflection</a></li><li><a
title="Category: Regular Expressions" href="http://www.itscodingtime.com/category/Regular-Expressions.aspx">Regular Expressions</a></li><li><a
title="Category: shortcuts" href="http://www.itscodingtime.com/category/shortcuts.aspx">shortcuts</a></li><li><a
title="Category: Silverlight" href="http://www.itscodingtime.com/category/Silverlight.aspx">Silverlight</a></li><li><a
title="Category: Silverlight Controls" href="http://www.itscodingtime.com/category/Silverlight-Controls.aspx">Silverlight Controls</a></li><li><a
title="Category: Source Control" href="http://www.itscodingtime.com/category/Source-Control.aspx">Source Control</a></li><li><a
title="Category: SQL Server" href="http://www.itscodingtime.com/category/SQL-Server.aspx">SQL Server</a></li><li><a
title="Category: Tools" href="http://www.itscodingtime.com/category/Tools.aspx">Tools</a></li><li><a
title="Category: Troubleshooting" href="http://www.itscodingtime.com/category/Troubleshooting.aspx">Troubleshooting</a></li><li><a
title="Category: Unit Testing" href="http://www.itscodingtime.com/category/Unit-Testing.aspx">Unit Testing</a></li><li><a
title="Category: Visual Studio" href="http://www.itscodingtime.com/category/Visual-Studio.aspx">Visual Studio</a></li><li><a
title="Category: Visual Studio 2010" href="http://www.itscodingtime.com/category/Visual-Studio-2010.aspx">Visual Studio 2010</a></li><li><a
title="Category: WCF" href="http://www.itscodingtime.com/category/WCF.aspx">WCF</a></li><li><a
title="Category: Web Sites" href="http://www.itscodingtime.com/category/Web-Sites.aspx">Web Sites</a></li><li><a
title="Category: Windows 7" href="http://www.itscodingtime.com/category/Windows-7.aspx">Windows 7</a></li><li><a
title="Category: Windows Phone" href="http://www.itscodingtime.com/category/Windows-Phone.aspx">Windows Phone</a></li><li><a
title="Category: WPF" href="http://www.itscodingtime.com/category/WPF.aspx">WPF</a></li></ul></div></div><div
id="main"><div
id="postnavigation"><a
id="ctl00_cphBody_hlPrev" title="Previous post" href="http://idealprogrammer.com/itscodingtime/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx">&lt;&lt; Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a> | <a
id="ctl00_cphBody_hlNext" title="Next post" href="http://idealprogrammer.com/itscodingtime/post/The-IIS-SEO-Toolkit.aspx">The IIS SEO Toolkit &gt;&gt;</a></div><div
class="post-main"><h1 class="postheader"><a
class="postheader" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx">Writing a (Completely Useless) Windows 7 <span
class="green">Gadget using Silverlight</span></a></h1><div
class="date">November 11, 2009 21:12</div><div
style="margin-top: -10px; border-top: black 1px dotted">&nbsp;</div><p></p><div
class="retweet"><script type="text/javascript">
			tweetcount_url = 'http://www.itscodingtime.com/itscodingtime/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx';
			tweetcount_title = 'Writing a (Completely Useless) Windows 7 Gadget using Silverlight';
			tweetcount_src = 'RT itscodingtime.com -';
			tweetcount_via = false;
		</script><br
/><script type="text/javascript" src="http://widgets.backtype.com/tweetcount.js"></script><br
/> <iframe
height="60" src="http://widgets.backtype.com/tweetcount?url=http%3A//www.itscodingtime.com/itscodingtime/post/Writing-a-%28Completely-Useless%29-Windows-7-Gadget-using-Silverlight.aspx&amp;cnt=false&amp;src=RT%20itscodingtime.com%20-&amp;via=false&amp;title=Writing%20a%20(Completely%20Useless)%20Windows%207%20Gadget%20using%20Silverlight" frameborder="0" width="52" allowtransparency="allowtransparency" scrolling="no"></iframe></div><p><br
/><pre class="alteven"><span class="lnum">   2:</span> <span class="kwrd">&lt;</span><span class="html">gadget</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>   <span class="kwrd">&lt;</span><span class="html">name</span><span class="kwrd">&gt;</span>Gadget Name Here<span class="kwrd">&lt;/</span><span class="html">name</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span>   <span class="kwrd">&lt;</span><span class="html">namespace</span><span class="kwrd">&gt;</span>YourCompanyNameHere<span class="kwrd">&lt;/</span><span class="html">namespace</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span>   <span class="kwrd">&lt;</span><span class="html">version</span><span class="kwrd">&gt;</span>1.0.0.0<span class="kwrd">&lt;/</span><span class="html">version</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span>   <span class="kwrd">&lt;</span><span class="html">author</span> <span class="attr">name</span>=&rdquo;<span class="attr">Company</span> <span class="attr">Name</span> <span class="attr">Here</span>&rdquo;<span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   7:</span>     <span class="kwrd">&lt;</span><span class="html">info</span> <span class="attr">url</span>=&rdquo;<span class="attr">http:</span>//<span class="attr">contoso</span>.<span class="attr">com</span>&rdquo; <span class="attr">text</span>=&rdquo;<span class="attr">Visit</span> <span class="attr">our</span> <span class="attr">Web</span> <span class="attr">site</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   8:</span>     <span class="kwrd">&lt;</span><span class="html">logo</span> <span class="attr">src</span>=&rdquo;<span class="attr">logo</span>.<span class="attr">png</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   9:</span>   <span class="kwrd">&lt;/</span><span class="html">author</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  10:</span>   <span class="kwrd">&lt;</span><span class="html">copyright</span><span class="kwrd">&gt;</span>&amp;#0169; 2007<span class="kwrd">&lt;/</span><span class="html">copyright</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  11:</span>   <span class="kwrd">&lt;</span><span class="html">description</span><span class="kwrd">&gt;</span>your gadget description<span class="kwrd">&lt;/</span><span class="html">description</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  12:</span>   <span class="kwrd">&lt;</span><span class="html">icons</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  13:</span>     <span class="kwrd">&lt;</span><span class="html">icon</span> <span class="attr">width</span>=&rdquo;<span class="attr">64</span>&rdquo; <span class="attr">height</span>=&rdquo;<span class="attr">64</span>&rdquo; <span class="attr">src</span>=&rdquo;<span class="attr">icon</span>.<span class="attr">png</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  14:</span>   <span class="kwrd">&lt;/</span><span class="html">icons</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  15:</span>   <span class="kwrd">&lt;</span><span class="html">hosts</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  16:</span>     <span class="kwrd">&lt;</span><span class="html">host</span> <span class="attr">name</span>=&rdquo;<span class="attr">sidebar</span>&rdquo;<span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  17:</span>       <span class="kwrd">&lt;</span><span class="html">base</span> <span class="attr">type</span>=&rdquo;<span class="attr">HTML</span>&rdquo; <span class="attr">apiVersion</span>=&rdquo;<span class="attr">1</span>.<span class="attr">0</span>.<span class="attr">0</span>&rdquo; <span class="attr">src</span>=&rdquo;<span class="attr">gadget</span>.<span class="attr">html</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  18:</span>       <span class="kwrd">&lt;</span><span class="html">permissions</span><span class="kwrd">&gt;</span>full<span class="kwrd">&lt;/</span><span class="html">permissions</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  19:</span>       <span class="kwrd">&lt;</span><span class="html">platform</span> <span class="attr">minPlatformVersion</span>=&rdquo;<span class="attr">0</span>.<span class="attr">3</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  20:</span>     <span class="kwrd">&lt;/</span><span class="html">host</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  21:</span>   <span class="kwrd">&lt;/</span><span class="html">hosts</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  22:</span> <span class="kwrd">&lt;/</span><span class="html">gadget</span><span class="kwrd">&gt;</span>
</pre></div></div></div></div></div><p><strong></p><div
id="sidebar"></p><div
style="width: 141px; margin-left: auto; margin-right: auto"><a
href="http://www.msdnevents.com/wp7devlaunch/"><img
align="middle" src="http://www.itscodingtime.com/images/wp7/wp7_signature_banner_sm.jpg" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" alt="" /></a></div><h1>About Me</h1><div
class="sidebar-box"><table
border="0" cellspacing="5" summary="About me" cellpadding="3" width="100%"><tbody><tr><td
valign="top" align="center" style="width: 20%"><img
alt="Scott Marlowe" align="middle" src="http://www.scottmarlowe.com/images/me/DSCF2278-closeup.JPG" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></td><td
style="line-height: 1.2; width: 80%; letter-spacing: 0px; font-size: 11px; vertical-align: top">I&#039;m Scott Marlowe. I write software.<br
/> <a
title="twitter" href="http://www.twitter.com/scottmarlowe"><img
alt="twitter" src="http://idealprogrammer.com/images/twitter/twitter-gloss.png" style="border-bottom: medium none; border-left: medium none; margin-top: 30px; width: 35px; height: 35px; border-top: medium none; border-right: medium none" /></a> <a
title="stackoverflow" href="http://stackoverflow.com/users/1683/scottmarlowe"><img
alt="stackoverflow" src="http://idealprogrammer.com/images/stackoverflow/stackoverflow.png" style="border-bottom: medium none; border-left: medium none; margin-top: 30px; width: 35px; height: 35px; border-top: medium none; border-right: medium none" /></a></td></tr></tbody></table></div><h1>Tags</h1><p><script language="javascript" type="text/javascript">

	// IE doesn't like the $ notation, so use 'jQuery' keyword instead
	jQuery(document).ready(function() {

		var silverlightControlHost = document.getElementById('silverlightTagCloudControlHost');
		var sidebarWidth = jQuery("#sidebar").css("width");
		sidebarWidth = parseInt(sidebarWidth); // removes the "px" at the end

		sidebarWidth -= 10; // bit of a tweak based on the ict template, this will keep the control from overflowing the right border

		// resize the control host, NOT the control itself
		// neither Firefox nor IE does an inital resize when the page is loaded, so we'll set the initial width ourselves
		silverlightControlHost.style.width = sidebarWidth + "px";
	});

	function ResizeControl() {

		var silverlightControl = document.getElementById('silverlightTagCloud');
		if (silverlightControl == null) return;

		var sidebarWidth = jQuery("#sidebar").css("width");
		newCtrlWidth = parseInt(sidebarWidth); // removes the "px" at the end
		newCtrlWidth -= 10; // some tweaking just for this site

		silverlightControl.content.JStoSLBridge.UpdateControlSize(newCtrlWidth); // reminder: don't need "px" at the end
	}

	function UpdateTagCloudSize() {

		ResizeControl();
	}

	// addEvent function by John Resig: http://ejohn.org/projects/flexible-javascript-events/
	function addEvent(obj, type, fn) {
		if (obj.attachEvent) {
			obj['e' + type + fn] = fn;
			obj[type + fn] = function() { obj['e' + type + fn](window.event); }
			obj.attachEvent('on' + type, obj[type + fn]);
		}
		else
			obj.addEventListener(type, fn, false);
	}

	// add Resize event handler
	addEvent(window, 'resize', function(event) {
		UpdateTagCloudSize();
	});
</script></p><div
id="silverlightTagCloudControlHost" style="width: 225px; height: 100px"><a
href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0" style="text-decoration: none"><img
alt="Get Microsoft Silverlight" src="http://go.microsoft.com/fwlink/?LinkId=108181" style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" /> </a><iframe
id="_sl_historyFrame" style="border-bottom: 0px; border-left: 0px; width: 0px; height: 0px; visibility: hidden; border-top: 0px; border-right: 0px"></iframe></div><h1>Popular Posts &amp; Comments</h1><div
class="tabbox"><div
id="ctl00_ctl23" class="ajax__tab_yuitabview-theme ajax__tab_container ajax__tab_default" style="border-bottom-style: none; border-right-style: none; border-top-style: none; visibility: visible; border-left-style: none"><div
id="ctl00_ctl23_header" class="ajax__tab_header"><span
id="ctl00_ctl23_ctl00_tab" class="ajax__tab_active"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_ctl00" class="ajax__tab_tab">Popular Posts</span></span></span></span><span
id="ctl00_ctl23_TabPanel2_tab"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_TabPanel2" class="ajax__tab_tab">Scott&#039;s Favs</span></span></span></span><span
id="ctl00_ctl23_ctl01_tab"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_ctl01" class="ajax__tab_tab">Comments</span></span></span></span></div><div
id="ctl00_ctl23_body" class="ajax__tab_body"><div
id="ctl00_ctl23_ctl00" class="ajax__tab_panel" style="visibility: visible"><ul><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a><br
/> <font
size="-5">by scottmarlowe (24063 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx" style="font-size: 8pt; font-weight: bold">Writing a (Completely Useless) Windows 7 Gadget using Silverlight</a><br
/> <font
size="-5">by scottmarlowe (13764 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Silverlight-Live-Comment-Preview-Control.aspx" style="font-size: 8pt; font-weight: bold">Silverlight Live Comment Preview Control</a><br
/> <font
size="-5">by scottmarlowe (10655 views)</font></li><li><a
href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx" style="font-size: 8pt; font-weight: bold">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a><br
/> <font
size="-5">by scottmarlowe (9879 views)</font></li><li><a
href="http://www.itscodingtime.com/post/A-Silverlight-2-to-Silverlight-3-Checklist.aspx" style="font-size: 8pt; font-weight: bold">A Silverlight 2 to Silverlight 3 Upgrade Checklist</a><br
/> <font
size="-5">by scottmarlowe (9810 views)</font></li><li><a
href="http://www.itscodingtime.com/post/My-Developers-Toolbox.aspx" style="font-size: 8pt; font-weight: bold">My Developer&#039;s Toolbox</a><br
/> <font
size="-5">by scottmarlowe (9370 views)</font></li><li><a
href="http://www.itscodingtime.com/post/The-different-ways-to-host-a-WCF-Service-Application-in-a-Web-App.aspx" style="font-size: 8pt; font-weight: bold">The different ways to host a WCF Service Application in a Web App</a><br
/> <font
size="-5">by scottmarlowe (8796 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio Code Analysis vs. FxCop vs. StyleCop&hellip; what&#039;s the diff?</a><br
/> <font
size="-5">by scottmarlowe (8729 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-2008-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2008 Shortcuts</a><br
/> <font
size="-5">by scottmarlowe (8537 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Building-a-JavaScript-to-Silverlight-Bridge.aspx" style="font-size: 8pt; font-weight: bold">How to build a JavaScript to Silverlight Bridge</a><br
/> <font
size="-5">by scottmarlowe (8181 views)</font></li></ul></div><div
id="ctl00_ctl23_TabPanel2" class="ajax__tab_panel" style="display: none; visibility: hidden"><ul><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Interface-vs-Virtual-vs-Abstract.aspx" style="font-size: 8pt; font-weight: bold">Interface vs. Virtual vs. Abstract</a><br
/> <font
size="-5">A refresher on these sometimes confusing keywords.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/A-Windows-Phone-7-Silverlight-TagList.aspx" style="font-size: 8pt; font-weight: bold">A Windows Phone 7 Silverlight TagList</a><br
/> <font
size="-5">A Silverlight Windows Phone 7 app to display blog tags in a list.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Getting-Started-with-Windows-Phone-7-Development.aspx" style="font-size: 8pt; font-weight: bold">Getting Started with Windows Phone 7 Development</a><br
/> <font
size="-5">Get started with apps for the Windows Phone 7 platform.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Getting-Started-with-Android-Development.aspx" style="font-size: 8pt; font-weight: bold">Getting Started with Android Development</a><br
/> <font
size="-5">Get started writing apps for the Android platform.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Adding-ELMAH-to-your-ASPNET-Web-Site.aspx" style="font-size: 8pt; font-weight: bold">Adding ELMAH to your ASP.NET Web Site</a><br
/> <font
size="-5">Add ELMAH exception handling to your site.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a><br
/> <font
size="-5">Keyboard shortcuts for Visual Studio 2010.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Coding-Standards-Naming-Conventions.aspx" style="font-size: 8pt; font-weight: bold">Coding Standards &amp; Conventions</a><br
/> <font
size="-5">Every developer or development group should have standards.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Podcasts.aspx" style="font-size: 8pt; font-weight: bold">Podcasts</a><br
/> <font
size="-5">Some of my favorite tech podcasts.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/My-Developers-Toolbox.aspx" style="font-size: 8pt; font-weight: bold">My Developer&#039;s Toolbox</a><br
/> <font
size="-5">My development tools of choice.</font></li></ul></div><div
id="ctl00_ctl23_ctl01" class="ajax__tab_panel" style="display: none; visibility: hidden"><ul
id="recentComments" class="recentComments"><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Using-all-of-the-WPF-Colors-in-Silverlight.aspx">Using all of the WPF Colors in Silverlight</a> (4)<br
/> Ian Hern wrote: This is awesome, thanks. <a
class="moreLink" href="http://www.itscodingtime.com/post/Using-all-of-the-WPF-Colors-in-Silverlight.aspx#id_64d33e26-9ce0-46c0-be51-8c8b89f1e7c5">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx">Writing a (Completely Useless) Windows 7 Gadget using Silverlight</a> (8)<br
/> digitalpbk wrote: Great info, but if you want to make a simple usefu&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx#id_c7070c39-3b2e-4e06-9203-147b1fd87b92">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx">Setting up a Continuous Integration System, Part 9: Conclusion</a> (2)<br
/> <a
href="http://www.itscodingtime.com/" rel="nofollow">Scott Marlowe</a> wrote: Nasir, It&#039;s been a long time since I&#039;ve played &hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx#id_88a731c2-d665-4747-b43a-b01d18833030">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx">Setting up a Continuous Integration System, Part 9: Conclusion</a> (2)<br
/> Nasir wrote: This is a very useful resource thanks for sharing.&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx#id_62012d5c-1f81-4b02-b37a-69e76f91382e">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/BlogEngineNET-GoDaddy-and-Email-Settings.aspx">BlogEngine.NET, GoDaddy, and Email Settings</a> (1)<br
/> prettystrangeguy wrote: Nice! That worked for me also. Thanks for this po&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/BlogEngineNET-GoDaddy-and-Email-Settings.aspx#id_9fb97dd0-16b7-4cf7-a79a-aeacf79ecb82">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Insufficient-available-memory-to-meet-the-expected-demands-of-an-operatione280a6.aspx">Insufficient available memory to meet the expected demands of an operation&hellip;</a> (1)<br
/> Thedaril wrote: Salut, the solution is to turoff your vs and rest&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Insufficient-available-memory-to-meet-the-expected-demands-of-an-operatione280a6.aspx#id_8149b3b4-c1b0-41e7-83bc-c466ad0ee7b3">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a> (9)<br
/> <a
href="http://www.netosting.in/" rel="nofollow">Chandrasekar</a> wrote: thanks scott, now the difference is clear to me, e&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx#id_5d62316f-4058-434d-8185-df8b3778ebcb">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx">Visual Studio Code Analysis vs. FxCop vs. StyleCop&hellip; what&#039;s the diff?</a> (3)<br
/> <a
href="http://www.nitrix-reloaded.com/" rel="nofollow">Nithin Mohan T K</a> wrote: VS2010 professional doesn&#039;t have code analysis. VS&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx#id_43e770fb-ce26-4fc9-a55a-d7a3622a07a5">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Silverlight-to-WCF-Cross-Domain-SecurityException.aspx">Silverlight to WCF Cross Domain SecurityException</a> (3)<br
/> Michael Bredbury wrote: Thanks for this info Scott, saved me hours&#8230;no do&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Silverlight-to-WCF-Cross-Domain-SecurityException.aspx#id_6159cc80-8a8f-4808-9ed4-42f7f6d6555c">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a> (9)<br
/> Larry wrote: I had been banging my head on the wall for several&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx#id_5610208d-7a01-45c9-8f65-af8d7ea52deb">[More]</a></li></ul></div></div></div></div><h1>Categories</h1><div
id="Categories"><ul
id="categorylist"><li><a
title="Category: .NET" href="http://www.itscodingtime.com/category/NET.aspx">.NET</a></li><li><a
title="Category: Android" href="http://www.itscodingtime.com/category/Android.aspx">Android</a></li><li><a
title="Category: Best Practices" href="http://www.itscodingtime.com/category/Best-Practices.aspx">Best Practices</a></li><li><a
title="Category: BlogEngine.NET" href="http://www.itscodingtime.com/category/BlogEngineNET.aspx">BlogEngine.NET</a></li><li><a
title="Category: C#" href="http://www.itscodingtime.com/category/C.aspx">C#</a></li><li><a
title="Category: coding standards" href="http://www.itscodingtime.com/category/coding-standards.aspx">coding standards</a></li><li><a
title="Category: Continuous Integration" href="http://www.itscodingtime.com/category/Continuous-Integration.aspx">Continuous Integration</a></li><li><a
title="Category: CruiseControl.NET" href="http://www.itscodingtime.com/category/CruiseControlNET.aspx">CruiseControl.NET</a></li><li><a
title="Category: Debugging" href="http://www.itscodingtime.com/category/Debugging.aspx">Debugging</a></li><li><a
title="Category: Deployment" href="http://www.itscodingtime.com/category/Deployment.aspx">Deployment</a></li><li><a
title="Category: Gadgets" href="http://www.itscodingtime.com/category/Gadgets.aspx">Gadgets</a></li><li><a
title="Category: Hardware" href="http://www.itscodingtime.com/category/Hardware.aspx">Hardware</a></li><li><a
title="Category: Javascript" href="http://www.itscodingtime.com/category/Javascript.aspx">Javascript</a></li><li><a
title="Category: Performance" href="http://www.itscodingtime.com/category/Performance.aspx">Performance</a></li><li><a
title="Category: Programming" href="http://www.itscodingtime.com/category/Programming.aspx">Programming</a></li><li><a
title="Category: QuickTips" href="http://www.itscodingtime.com/category/QuickTips.aspx">QuickTips</a></li><li><a
title="Category: Reflection" href="http://www.itscodingtime.com/category/Reflection.aspx">Reflection</a></li><li><a
title="Category: Regular Expressions" href="http://www.itscodingtime.com/category/Regular-Expressions.aspx">Regular Expressions</a></li><li><a
title="Category: shortcuts" href="http://www.itscodingtime.com/category/shortcuts.aspx">shortcuts</a></li><li><a
title="Category: Silverlight" href="http://www.itscodingtime.com/category/Silverlight.aspx">Silverlight</a></li><li><a
title="Category: Silverlight Controls" href="http://www.itscodingtime.com/category/Silverlight-Controls.aspx">Silverlight Controls</a></li><li><a
title="Category: Source Control" href="http://www.itscodingtime.com/category/Source-Control.aspx">Source Control</a></li><li><a
title="Category: SQL Server" href="http://www.itscodingtime.com/category/SQL-Server.aspx">SQL Server</a></li><li><a
title="Category: Tools" href="http://www.itscodingtime.com/category/Tools.aspx">Tools</a></li><li><a
title="Category: Troubleshooting" href="http://www.itscodingtime.com/category/Troubleshooting.aspx">Troubleshooting</a></li><li><a
title="Category: Unit Testing" href="http://www.itscodingtime.com/category/Unit-Testing.aspx">Unit Testing</a></li><li><a
title="Category: Visual Studio" href="http://www.itscodingtime.com/category/Visual-Studio.aspx">Visual Studio</a></li><li><a
title="Category: Visual Studio 2010" href="http://www.itscodingtime.com/category/Visual-Studio-2010.aspx">Visual Studio 2010</a></li><li><a
title="Category: WCF" href="http://www.itscodingtime.com/category/WCF.aspx">WCF</a></li><li><a
title="Category: Web Sites" href="http://www.itscodingtime.com/category/Web-Sites.aspx">Web Sites</a></li><li><a
title="Category: Windows 7" href="http://www.itscodingtime.com/category/Windows-7.aspx">Windows 7</a></li><li><a
title="Category: Windows Phone" href="http://www.itscodingtime.com/category/Windows-Phone.aspx">Windows Phone</a></li><li><a
title="Category: WPF" href="http://www.itscodingtime.com/category/WPF.aspx">WPF</a></li></ul></div></div><div
id="main"><div
id="postnavigation"><a
id="ctl00_cphBody_hlPrev" title="Previous post" href="http://idealprogrammer.com/itscodingtime/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx">&lt;&lt; Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a> | <a
id="ctl00_cphBody_hlNext" title="Next post" href="http://idealprogrammer.com/itscodingtime/post/The-IIS-SEO-Toolkit.aspx">The IIS SEO Toolkit &gt;&gt;</a></div><div
class="post-main"><h1 class="postheader"><a
class="postheader" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx">Writing a (Completely Useless) Windows 7 <span
class="green">Gadget using Silverlight</span></a></h1><div
class="date">November 11, 2009 21:12</div><div
style="margin-top: -10px; border-top: black 1px dotted">&nbsp;</div><p></p><div
class="retweet"><script type="text/javascript">
			tweetcount_url = 'http://www.itscodingtime.com/itscodingtime/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx';
			tweetcount_title = 'Writing a (Completely Useless) Windows 7 Gadget using Silverlight';
			tweetcount_src = 'RT itscodingtime.com -';
			tweetcount_via = false;
		</script><br
/><script type="text/javascript" src="http://widgets.backtype.com/tweetcount.js"></script><br
/> <iframe
height="60" src="http://widgets.backtype.com/tweetcount?url=http%3A//www.itscodingtime.com/itscodingtime/post/Writing-a-%28Completely-Useless%29-Windows-7-Gadget-using-Silverlight.aspx&amp;cnt=false&amp;src=RT%20itscodingtime.com%20-&amp;via=false&amp;title=Writing%20a%20(Completely%20Useless)%20Windows%207%20Gadget%20using%20Silverlight" frameborder="0" width="52" allowtransparency="allowtransparency" scrolling="no"></iframe></div><p><br
/><pre class="alteven"><span class="lnum">   2:</span> <span class="kwrd">&lt;</span><span class="html">gadget</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>   <span class="kwrd">&lt;</span><span class="html">name</span><span class="kwrd">&gt;</span>Gadget Name Here<span class="kwrd">&lt;/</span><span class="html">name</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span>   <span class="kwrd">&lt;</span><span class="html">namespace</span><span class="kwrd">&gt;</span>YourCompanyNameHere<span class="kwrd">&lt;/</span><span class="html">namespace</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span>   <span class="kwrd">&lt;</span><span class="html">version</span><span class="kwrd">&gt;</span>1.0.0.0<span class="kwrd">&lt;/</span><span class="html">version</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span>   <span class="kwrd">&lt;</span><span class="html">author</span> <span class="attr">name</span>=&rdquo;<span class="attr">Company</span> <span class="attr">Name</span> <span class="attr">Here</span>&rdquo;<span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   7:</span>     <span class="kwrd">&lt;</span><span class="html">info</span> <span class="attr">url</span>=&rdquo;<span class="attr">http:</span>//<span class="attr">contoso</span>.<span class="attr">com</span>&rdquo; <span class="attr">text</span>=&rdquo;<span class="attr">Visit</span> <span class="attr">our</span> <span class="attr">Web</span> <span class="attr">site</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   8:</span>     <span class="kwrd">&lt;</span><span class="html">logo</span> <span class="attr">src</span>=&rdquo;<span class="attr">logo</span>.<span class="attr">png</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   9:</span>   <span class="kwrd">&lt;/</span><span class="html">author</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  10:</span>   <span class="kwrd">&lt;</span><span class="html">copyright</span><span class="kwrd">&gt;</span>&amp;#0169; 2007<span class="kwrd">&lt;/</span><span class="html">copyright</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  11:</span>   <span class="kwrd">&lt;</span><span class="html">description</span><span class="kwrd">&gt;</span>your gadget description<span class="kwrd">&lt;/</span><span class="html">description</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  12:</span>   <span class="kwrd">&lt;</span><span class="html">icons</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  13:</span>     <span class="kwrd">&lt;</span><span class="html">icon</span> <span class="attr">width</span>=&rdquo;<span class="attr">64</span>&rdquo; <span class="attr">height</span>=&rdquo;<span class="attr">64</span>&rdquo; <span class="attr">src</span>=&rdquo;<span class="attr">icon</span>.<span class="attr">png</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  14:</span>   <span class="kwrd">&lt;/</span><span class="html">icons</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  15:</span>   <span class="kwrd">&lt;</span><span class="html">hosts</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  16:</span>     <span class="kwrd">&lt;</span><span class="html">host</span> <span class="attr">name</span>=&rdquo;<span class="attr">sidebar</span>&rdquo;<span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  17:</span>       <span class="kwrd">&lt;</span><span class="html">base</span> <span class="attr">type</span>=&rdquo;<span class="attr">HTML</span>&rdquo; <span class="attr">apiVersion</span>=&rdquo;<span class="attr">1</span>.<span class="attr">0</span>.<span class="attr">0</span>&rdquo; <span class="attr">src</span>=&rdquo;<span class="attr">gadget</span>.<span class="attr">html</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  18:</span>       <span class="kwrd">&lt;</span><span class="html">permissions</span><span class="kwrd">&gt;</span>full<span class="kwrd">&lt;/</span><span class="html">permissions</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  19:</span>       <span class="kwrd">&lt;</span><span class="html">platform</span> <span class="attr">minPlatformVersion</span>=&rdquo;<span class="attr">0</span>.<span class="attr">3</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  20:</span>     <span class="kwrd">&lt;/</span><span class="html">host</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  21:</span>   <span class="kwrd">&lt;/</span><span class="html">hosts</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  22:</span> <span class="kwrd">&lt;/</span><span class="html">gadget</span><span class="kwrd">&gt;</span>
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_2457);" href="javascript:void(0);">View Plain</a></div></div><div
id="CopyToClipboard_Hidden" style="display: none">&nbsp;</div><div
id="CopyToClipboard_FlashContainer">&nbsp;</div><p><script type="text/javascript">

					function CopyToClipboard_Strip( text ){
						text = text.replace( /&nbsp;/g, ' ' );
						text = text.replace( /&quot;/g, '"' );
						text = text.replace( /&#39;/g, '"' );
						text = text.replace( /&amp;/g, '&' );
						text = text.replace( /&lt;/g, String.fromCharCode(60) );
						text = text.replace( /&gt;/g, String.fromCharCode(62) );
						return text;
					}

					function CopyToClipboard_Copy(text)
					{
						if (window.clipboardData)
						{
							window.clipboardData.setData('text',text);
						}
						else
						{
							var clipboarddiv=document.getElementById('divclipboardswf');
							if(clipboarddiv==null)
							{
								clipboarddiv=document.createElement('div');
								clipboarddiv.setAttribute("name", "divclipboardswf");
								clipboarddiv.setAttribute("id", "divclipboardswf");
								document.body.appendChild(clipboarddiv);
							}

							clipboarddiv.innerHTML='<embed src="http://www.itscodingtime.com/_clipboard.swf" FlashVars="clipboard='+
								encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
						}

						return false;
					}
                    
					//function CopyToClipboard_Copy( text ){

						//### get reference to utility div
					//	var ele = document.getElementById('CopyToClipboard_Hidden');

						//### the following taken from: http://webchicanery.com/2006/11/14/clipboard-copy-javascript/
					//	if (false && window.clipboardData) {
					//		window.clipboardData.setData( "Text", text );
					//	} else {
					//		document.getElementById('CopyToClipboard_FlashContainer').innerHTML = '';
					//		var divinfo = '<embed id="CopyToClipboard_FlashFile" src="/itscodingtime/_clipboard.swf" FlashVars="clipboard=' + encodeURIComponent(text) + '" width="0" height="0" type="application/x-shockwave-flash"></embed>';
					//		document.getElementById('CopyToClipboard_FlashContainer').innerHTML = divinfo;
					//	}
                    //}

					function CopyToClipboard_ViewPlain( text ){
						var win = window.open( '', 'CopyToClipboard_Window', 'width=480, height=480, toolbar=no, menubar=no, scrollbars=auto, resizable=yes, location=no, directories=no, status=no' );
						win.document.write( '<html><head><title>Code</title><body style="margin:0;padding:0;"><textarea style="width:100%;height:100%;border:0;">' + text + '</textarea></body></head></html>' );
					}

                </script><br
/><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_2457 = CopyToClipboard_Strip('&lt;?xml version=&rdquo;1.0&rdquo; encoding=&rdquo;utf-8&rdquo; ?&gt;\r\n&lt;gadget&gt;\r\n  &lt;name&gt;Gadget Name Here&lt;/name&gt;\r\n  &lt;namespace&gt;YourCompanyNameHere&lt;/namespace&gt;\r\n  &lt;version&gt;1.0.0.0&lt;/version&gt;\r\n  &lt;author name=&rdquo;Company Name Here&rdquo;&gt;\r\n    &lt;info url=&rdquo;http://contoso.com&rdquo; text=&rdquo;Visit our Web site&rdquo; /&gt;\r\n    &lt;logo src=&rdquo;logo.png&rdquo; /&gt;\r\n  &lt;/author&gt;\r\n  &lt;copyright&gt;&amp;#0169; 2007&lt;/copyright&gt;\r\n  &lt;description&gt;your gadget description&lt;/description&gt;\r\n  &lt;icons&gt;\r\n    &lt;icon width=&rdquo;64&rdquo; height=&rdquo;64&rdquo; src=&rdquo;icon.png&rdquo; /&gt;\r\n  &lt;/icons&gt;\r\n  &lt;hosts&gt;\r\n    &lt;host name=&rdquo;sidebar&rdquo;&gt;\r\n      &lt;base type=&rdquo;HTML&rdquo; apiVersion=&rdquo;1.0.0&rdquo; src=&rdquo;gadget.html&rdquo; /&gt;\r\n      &lt;permissions&gt;full&lt;/permissions&gt;\r\n      &lt;platform minPlatformVersion=&rdquo;0.3&rdquo; /&gt;\r\n    &lt;/host&gt;\r\n  &lt;/hosts&gt;\r\n&lt;/gadget&gt;\r\n');
					</script></p><p>Donavon says this about the XML content:</p><blockquote><p>Most of the elements in the definition file are used for displaying the gadget in the gallery. The one truly functional element is the src attribute of the base element&mdash;this points to the HTML file that will kickstart the gadget. I make it a practice to name this file gadget.html, but any valid filename will do.</p></blockquote><p>So it&#039;s the XML file that acts as a bridge between the gadget hosting app (still sidebar.exe in Windows 7) and the gadget itself.</p><h4>Creating a Windows Gadget using Silverlight</h4><p>Creating a gadget that uses Silverlight is surprisingly easy.</p><p>1.) Start with a basic Silverlight Application project:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_3.png" width="656" height="454" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><p>I&#039;ll call mine SilverlightGadget.</p><p>I&#039;ll host the control in an ASP.NET Web Site and use Silverlight 3:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_4.png" width="520" height="418" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><p>&nbsp;</p><p>Once the project is created, you can delete the SilverlightGadgetTestPage.aspx from the web site (we aren&#039;t going to use it). I also renamed the SilverlightGadgetTestPage.html file to just gadget.html as Donavon recommends.</p><p>2.) Next, add a new .xml file to the web site. I called this file gadget.xml to match the naming of the HTML file. Copy the generic &lt;gadget&gt; contents shown above into this new file. You can update information in the file as you see fit. For purposes of this demo, I&#039;ll just leave it the way it is except for the gadget&#039;s &lt;name&gt; which I&#039;ll call SilverlightGadget. The really important line is this file is:</p><blockquote><p>&lt;base type=&quot;HTML&quot; apiVersion=&quot;1.0.0&quot; src=&quot;gadget.html&quot; /&gt;</p></blockquote><p>Make sure &quot;src&quot; points to your HTML file.</p><p>3.) In gadget.html, we have a couple of changes to make:</p><p>a. Make the &quot;html, body&quot; style read &quot;height: 80px; width: 130px;&quot;</p><div
id="codeSnippetWrapper" class="csharpcode-wrapper"><div
id="codeSnippet" class="csharpcode"><pre class="alt"><span class="lnum">   1:</span> <span class="kwrd">html</span>, <span class="kwrd">body</span> {
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   2:</span>     <span class="kwrd">height</span>: <span class="str">80px;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>     <span class="kwrd">width</span>: <span class="str">130px;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span> }
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_15010);" href="javascript:void(0);">View Plain</a></div></div><p><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_15010 = CopyToClipboard_Strip('html, body {\r\n    height: 80px;\r\n    width: 130px;\r\n}\r\n');
					</script></p><p>Make sure to remove the overflow style. It was causing me problems, specifically causing horizontal and vertical scrollbars to display.</p><p>The height value was arbitrary; you&#039;ll want to adjust based on the content of your gadget. But the width of 130px was a maximum under Vista for a docked gadget. In Windows 7, however, this doesn&#039;t seem to apply as I was able to make the gadget as wide as I wanted. Still, all of the other docked gadgets that I have do not exceed this width, so I went with the standard 130px.</p><p>b. Add the following param to the list of object &lt;param&gt; tags:</p><blockquote><p>&lt;param name=&quot;windowless&quot; value=&quot;true&quot; /&gt;</p></blockquote><p>This seemed to have the effect of enabling the gadget handles when you mouseover the gadget.</p><p>4.) Now, in the XAML, I&#039;ll remove the height and width attributes from the UserControl and add a simple button inside the default grid. This gives me:</p><div
id="codeSnippetWrapper" class="csharpcode-wrapper"><div
id="codeSnippet" class="csharpcode"><pre class="alt"><span class="lnum">   1:</span> <span class="kwrd">&lt;</span><span class="html">UserControl</span> <span class="attr">x:Class</span><span class="kwrd">=&quot;SilverlightGadget.MainPage&quot;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   2:</span>     <span class="attr">xmlns</span><span class="kwrd">=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>     <span class="attr">xmlns:x</span><span class="kwrd">=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span>     <span class="attr">xmlns:d</span><span class="kwrd">=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span>     <span class="attr">xmlns:mc</span><span class="kwrd">=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span>     <span class="attr">mc:Ignorable</span><span class="kwrd">=&quot;d&quot;</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   7:</span>&nbsp; 
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   8:</span>     <span class="kwrd">&lt;</span><span class="html">Grid</span> <span class="attr">x:Name</span><span class="kwrd">=&quot;LayoutRoot&quot;</span> <span class="attr">Background</span><span class="kwrd">=&quot;RosyBrown&quot;</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   9:</span>         <span class="kwrd">&lt;</span><span class="html">Button</span> <span class="attr">Background</span><span class="kwrd">=&quot;AliceBlue&quot;</span> <span class="attr">Width</span><span class="kwrd">=&quot;70&quot;</span> <span class="attr">Height</span><span class="kwrd">=&quot;30&quot;</span> <span class="attr">Content</span><span class="kwrd">=&quot;Click&quot;</span>  <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  10:</span>     <span class="kwrd">&lt;/</span><span class="html">Grid</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  11:</span> <span class="kwrd">&lt;/</span><span class="html">UserControl</span><span class="kwrd">&gt;</span>
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_17043);" href="javascript:void(0);">View Plain</a></div></div><p><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_17043 = CopyToClipboard_Strip('&lt;UserControl x:Class=&quot;SilverlightGadget.MainPage&quot;\r\n    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;\r\n    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;\r\n    xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;\r\n    xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;\r\n    mc:Ignorable=&quot;d&quot;&gt;\r\n \r\n    &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;RosyBrown&quot;&gt;\r\n        &lt;Button Background=&quot;AliceBlue&quot; Width=&quot;70&quot; Height=&quot;30&quot; Content=&quot;Click&quot;  /&gt;\r\n    &lt;/Grid&gt;\r\n&lt;/UserControl&gt;\r\n');
					</script></p><p>Yes, I do realize this is a completely useless Silverlight control, but, for now, I&#039;m just trying to demonstrate how to build the gadget by laying some groundwork. Perhaps in a future post I&#039;ll share some more useful Silverlight controls to host inside a gadget.</p><p>That should be it for the project/code changes. Now, let&#039;s install the gadget and see just how useless my one button control is.</p><h4>Installing the Silverlight Gadget</h4><p>As mentioned above, a gadget is a just a zip file with the extension .gadget. The easiest way to create a .gadget file is therefore to just use your favorite zip program. Mine is 7za, which I use inside a batch file so that I just double-click or run the batch file from the command line in order to both create and install the gadget.</p><p>Here&#039;s the sequence of commands (I run this from the project root; the batch file sits alongside the .sln file):</p><div
id="codeSnippetWrapper" class="csharpcode-wrapper"><div
id="codeSnippet" class="csharpcode"><pre class="alt"><span class="lnum">   1:</span> cd SilverlightGadget.Web
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   2:</span> del *.gadget
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span> 7za a -r silverlightgadget.zip *
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span> rename *.zip *.gadget
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span> silverlightgadget.gadget
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span> cd ..
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_21635);" href="javascript:void(0);">View Plain</a></div></div><p><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_21635 = CopyToClipboard_Strip('cd SilverlightGadget.Web\r\ndel *.gadget\r\n7za a -r silverlightgadget.zip *\r\nrename *.zip *.gadget\r\nsilverlightgadget.gadget\r\ncd ..\r\n');
					</script></p><p>I&#039;m just zipping up the whole web site, including the .xap and even the web.config, which isn&#039;t needed but this is just demo code so who cares. <img
src='http://idealprogrammer.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><p>Installing the gadget is as easy as double-clicking the .gadget file or typing the name at the command line and hitting enter. You&#039;ll be prompted to install the gadget. Click &quot;Install&quot; and prepared to be impressed:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_5.png" width="162" height="111" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p></div></div></div><p></strong></p><div
id="sidebar"></p><div
style="width: 141px; margin-left: auto; margin-right: auto"><a
href="http://www.msdnevents.com/wp7devlaunch/"><img
align="middle" src="http://www.itscodingtime.com/images/wp7/wp7_signature_banner_sm.jpg" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" alt="" /></a></div><h1>About Me</h1><div
class="sidebar-box"><table
border="0" cellspacing="5" summary="About me" cellpadding="3" width="100%"><tbody><tr><td
valign="top" align="center" style="width: 20%"><img
alt="Scott Marlowe" align="middle" src="http://www.scottmarlowe.com/images/me/DSCF2278-closeup.JPG" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></td><td
style="line-height: 1.2; width: 80%; letter-spacing: 0px; font-size: 11px; vertical-align: top">I&#039;m Scott Marlowe. I write software.<br
/> <a
title="twitter" href="http://www.twitter.com/scottmarlowe"><img
alt="twitter" src="http://idealprogrammer.com/images/twitter/twitter-gloss.png" style="border-bottom: medium none; border-left: medium none; margin-top: 30px; width: 35px; height: 35px; border-top: medium none; border-right: medium none" /></a> <a
title="stackoverflow" href="http://stackoverflow.com/users/1683/scottmarlowe"><img
alt="stackoverflow" src="http://idealprogrammer.com/images/stackoverflow/stackoverflow.png" style="border-bottom: medium none; border-left: medium none; margin-top: 30px; width: 35px; height: 35px; border-top: medium none; border-right: medium none" /></a></td></tr></tbody></table></div><h1>Tags</h1><p><script language="javascript" type="text/javascript">

	// IE doesn't like the $ notation, so use 'jQuery' keyword instead
	jQuery(document).ready(function() {

		var silverlightControlHost = document.getElementById('silverlightTagCloudControlHost');
		var sidebarWidth = jQuery("#sidebar").css("width");
		sidebarWidth = parseInt(sidebarWidth); // removes the "px" at the end

		sidebarWidth -= 10; // bit of a tweak based on the ict template, this will keep the control from overflowing the right border

		// resize the control host, NOT the control itself
		// neither Firefox nor IE does an inital resize when the page is loaded, so we'll set the initial width ourselves
		silverlightControlHost.style.width = sidebarWidth + "px";
	});

	function ResizeControl() {

		var silverlightControl = document.getElementById('silverlightTagCloud');
		if (silverlightControl == null) return;

		var sidebarWidth = jQuery("#sidebar").css("width");
		newCtrlWidth = parseInt(sidebarWidth); // removes the "px" at the end
		newCtrlWidth -= 10; // some tweaking just for this site

		silverlightControl.content.JStoSLBridge.UpdateControlSize(newCtrlWidth); // reminder: don't need "px" at the end
	}

	function UpdateTagCloudSize() {

		ResizeControl();
	}

	// addEvent function by John Resig: http://ejohn.org/projects/flexible-javascript-events/
	function addEvent(obj, type, fn) {
		if (obj.attachEvent) {
			obj['e' + type + fn] = fn;
			obj[type + fn] = function() { obj['e' + type + fn](window.event); }
			obj.attachEvent('on' + type, obj[type + fn]);
		}
		else
			obj.addEventListener(type, fn, false);
	}

	// add Resize event handler
	addEvent(window, 'resize', function(event) {
		UpdateTagCloudSize();
	});
</script></p><div
id="silverlightTagCloudControlHost" style="width: 225px; height: 100px"><a
href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0" style="text-decoration: none"><img
alt="Get Microsoft Silverlight" src="http://go.microsoft.com/fwlink/?LinkId=108181" style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" /> </a><iframe
id="_sl_historyFrame" style="border-bottom: 0px; border-left: 0px; width: 0px; height: 0px; visibility: hidden; border-top: 0px; border-right: 0px"></iframe></div><h1>Popular Posts &amp; Comments</h1><div
class="tabbox"><div
id="ctl00_ctl23" class="ajax__tab_yuitabview-theme ajax__tab_container ajax__tab_default" style="border-bottom-style: none; border-right-style: none; border-top-style: none; visibility: visible; border-left-style: none"><div
id="ctl00_ctl23_header" class="ajax__tab_header"><span
id="ctl00_ctl23_ctl00_tab" class="ajax__tab_active"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_ctl00" class="ajax__tab_tab">Popular Posts</span></span></span></span><span
id="ctl00_ctl23_TabPanel2_tab"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_TabPanel2" class="ajax__tab_tab">Scott&#039;s Favs</span></span></span></span><span
id="ctl00_ctl23_ctl01_tab"><span
class="ajax__tab_outer"><span
class="ajax__tab_inner"><span
id="__tab_ctl00_ctl23_ctl01" class="ajax__tab_tab">Comments</span></span></span></span></div><div
id="ctl00_ctl23_body" class="ajax__tab_body"><div
id="ctl00_ctl23_ctl00" class="ajax__tab_panel" style="visibility: visible"><ul><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a><br
/> <font
size="-5">by scottmarlowe (24063 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx" style="font-size: 8pt; font-weight: bold">Writing a (Completely Useless) Windows 7 Gadget using Silverlight</a><br
/> <font
size="-5">by scottmarlowe (13764 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Silverlight-Live-Comment-Preview-Control.aspx" style="font-size: 8pt; font-weight: bold">Silverlight Live Comment Preview Control</a><br
/> <font
size="-5">by scottmarlowe (10655 views)</font></li><li><a
href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx" style="font-size: 8pt; font-weight: bold">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a><br
/> <font
size="-5">by scottmarlowe (9879 views)</font></li><li><a
href="http://www.itscodingtime.com/post/A-Silverlight-2-to-Silverlight-3-Checklist.aspx" style="font-size: 8pt; font-weight: bold">A Silverlight 2 to Silverlight 3 Upgrade Checklist</a><br
/> <font
size="-5">by scottmarlowe (9810 views)</font></li><li><a
href="http://www.itscodingtime.com/post/My-Developers-Toolbox.aspx" style="font-size: 8pt; font-weight: bold">My Developer&#039;s Toolbox</a><br
/> <font
size="-5">by scottmarlowe (9370 views)</font></li><li><a
href="http://www.itscodingtime.com/post/The-different-ways-to-host-a-WCF-Service-Application-in-a-Web-App.aspx" style="font-size: 8pt; font-weight: bold">The different ways to host a WCF Service Application in a Web App</a><br
/> <font
size="-5">by scottmarlowe (8796 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio Code Analysis vs. FxCop vs. StyleCop&hellip; what&#039;s the diff?</a><br
/> <font
size="-5">by scottmarlowe (8729 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Visual-Studio-2008-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2008 Shortcuts</a><br
/> <font
size="-5">by scottmarlowe (8537 views)</font></li><li><a
href="http://www.itscodingtime.com/post/Building-a-JavaScript-to-Silverlight-Bridge.aspx" style="font-size: 8pt; font-weight: bold">How to build a JavaScript to Silverlight Bridge</a><br
/> <font
size="-5">by scottmarlowe (8181 views)</font></li></ul></div><div
id="ctl00_ctl23_TabPanel2" class="ajax__tab_panel" style="display: none; visibility: hidden"><ul><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Interface-vs-Virtual-vs-Abstract.aspx" style="font-size: 8pt; font-weight: bold">Interface vs. Virtual vs. Abstract</a><br
/> <font
size="-5">A refresher on these sometimes confusing keywords.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/A-Windows-Phone-7-Silverlight-TagList.aspx" style="font-size: 8pt; font-weight: bold">A Windows Phone 7 Silverlight TagList</a><br
/> <font
size="-5">A Silverlight Windows Phone 7 app to display blog tags in a list.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Getting-Started-with-Windows-Phone-7-Development.aspx" style="font-size: 8pt; font-weight: bold">Getting Started with Windows Phone 7 Development</a><br
/> <font
size="-5">Get started with apps for the Windows Phone 7 platform.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Getting-Started-with-Android-Development.aspx" style="font-size: 8pt; font-weight: bold">Getting Started with Android Development</a><br
/> <font
size="-5">Get started writing apps for the Android platform.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Adding-ELMAH-to-your-ASPNET-Web-Site.aspx" style="font-size: 8pt; font-weight: bold">Adding ELMAH to your ASP.NET Web Site</a><br
/> <font
size="-5">Add ELMAH exception handling to your site.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx" style="font-size: 8pt; font-weight: bold">Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a><br
/> <font
size="-5">Keyboard shortcuts for Visual Studio 2010.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Coding-Standards-Naming-Conventions.aspx" style="font-size: 8pt; font-weight: bold">Coding Standards &amp; Conventions</a><br
/> <font
size="-5">Every developer or development group should have standards.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/Podcasts.aspx" style="font-size: 8pt; font-weight: bold">Podcasts</a><br
/> <font
size="-5">Some of my favorite tech podcasts.</font></li><li><a
href="http://www.itscodingtime.com/itscodingtime/post/My-Developers-Toolbox.aspx" style="font-size: 8pt; font-weight: bold">My Developer&#039;s Toolbox</a><br
/> <font
size="-5">My development tools of choice.</font></li></ul></div><div
id="ctl00_ctl23_ctl01" class="ajax__tab_panel" style="display: none; visibility: hidden"><ul
id="recentComments" class="recentComments"><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Using-all-of-the-WPF-Colors-in-Silverlight.aspx">Using all of the WPF Colors in Silverlight</a> (4)<br
/> Ian Hern wrote: This is awesome, thanks. <a
class="moreLink" href="http://www.itscodingtime.com/post/Using-all-of-the-WPF-Colors-in-Silverlight.aspx#id_64d33e26-9ce0-46c0-be51-8c8b89f1e7c5">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx">Writing a (Completely Useless) Windows 7 Gadget using Silverlight</a> (8)<br
/> digitalpbk wrote: Great info, but if you want to make a simple usefu&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx#id_c7070c39-3b2e-4e06-9203-147b1fd87b92">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx">Setting up a Continuous Integration System, Part 9: Conclusion</a> (2)<br
/> <a
href="http://www.itscodingtime.com/" rel="nofollow">Scott Marlowe</a> wrote: Nasir, It&#039;s been a long time since I&#039;ve played &hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx#id_88a731c2-d665-4747-b43a-b01d18833030">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx">Setting up a Continuous Integration System, Part 9: Conclusion</a> (2)<br
/> Nasir wrote: This is a very useful resource thanks for sharing.&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Setting-up-a-Continuous-Integration-System-Part-9-Conclusion.aspx#id_62012d5c-1f81-4b02-b37a-69e76f91382e">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/BlogEngineNET-GoDaddy-and-Email-Settings.aspx">BlogEngine.NET, GoDaddy, and Email Settings</a> (1)<br
/> prettystrangeguy wrote: Nice! That worked for me also. Thanks for this po&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/BlogEngineNET-GoDaddy-and-Email-Settings.aspx#id_9fb97dd0-16b7-4cf7-a79a-aeacf79ecb82">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Insufficient-available-memory-to-meet-the-expected-demands-of-an-operatione280a6.aspx">Insufficient available memory to meet the expected demands of an operation&hellip;</a> (1)<br
/> Thedaril wrote: Salut, the solution is to turoff your vs and rest&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Insufficient-available-memory-to-meet-the-expected-demands-of-an-operatione280a6.aspx#id_8149b3b4-c1b0-41e7-83bc-c466ad0ee7b3">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a> (9)<br
/> <a
href="http://www.netosting.in/" rel="nofollow">Chandrasekar</a> wrote: thanks scott, now the difference is clear to me, e&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx#id_5d62316f-4058-434d-8185-df8b3778ebcb">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx">Visual Studio Code Analysis vs. FxCop vs. StyleCop&hellip; what&#039;s the diff?</a> (3)<br
/> <a
href="http://www.nitrix-reloaded.com/" rel="nofollow">Nithin Mohan T K</a> wrote: VS2010 professional doesn&#039;t have code analysis. VS&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx#id_43e770fb-ce26-4fc9-a55a-d7a3622a07a5">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/Silverlight-to-WCF-Cross-Domain-SecurityException.aspx">Silverlight to WCF Cross Domain SecurityException</a> (3)<br
/> Michael Bredbury wrote: Thanks for this info Scott, saved me hours&#8230;no do&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/Silverlight-to-WCF-Cross-Domain-SecurityException.aspx#id_6159cc80-8a8f-4808-9ed4-42f7f6d6555c">[More]</a></li><li><a
class="postTitle" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx">The difference between Visual Studio&#039;s WCF Service Application and WCF Service Library project templates</a> (9)<br
/> Larry wrote: I had been banging my head on the wall for several&hellip; <a
class="moreLink" href="http://www.itscodingtime.com/post/The-difference-between-Visual-Studios-WCF-Service-Application-and-WCF-Service-Library-project-templates.aspx#id_5610208d-7a01-45c9-8f65-af8d7ea52deb">[More]</a></li></ul></div></div></div></div><h1>Categories</h1><div
id="Categories"><ul
id="categorylist"><li><a
title="Category: .NET" href="http://www.itscodingtime.com/category/NET.aspx">.NET</a></li><li><a
title="Category: Android" href="http://www.itscodingtime.com/category/Android.aspx">Android</a></li><li><a
title="Category: Best Practices" href="http://www.itscodingtime.com/category/Best-Practices.aspx">Best Practices</a></li><li><a
title="Category: BlogEngine.NET" href="http://www.itscodingtime.com/category/BlogEngineNET.aspx">BlogEngine.NET</a></li><li><a
title="Category: C#" href="http://www.itscodingtime.com/category/C.aspx">C#</a></li><li><a
title="Category: coding standards" href="http://www.itscodingtime.com/category/coding-standards.aspx">coding standards</a></li><li><a
title="Category: Continuous Integration" href="http://www.itscodingtime.com/category/Continuous-Integration.aspx">Continuous Integration</a></li><li><a
title="Category: CruiseControl.NET" href="http://www.itscodingtime.com/category/CruiseControlNET.aspx">CruiseControl.NET</a></li><li><a
title="Category: Debugging" href="http://www.itscodingtime.com/category/Debugging.aspx">Debugging</a></li><li><a
title="Category: Deployment" href="http://www.itscodingtime.com/category/Deployment.aspx">Deployment</a></li><li><a
title="Category: Gadgets" href="http://www.itscodingtime.com/category/Gadgets.aspx">Gadgets</a></li><li><a
title="Category: Hardware" href="http://www.itscodingtime.com/category/Hardware.aspx">Hardware</a></li><li><a
title="Category: Javascript" href="http://www.itscodingtime.com/category/Javascript.aspx">Javascript</a></li><li><a
title="Category: Performance" href="http://www.itscodingtime.com/category/Performance.aspx">Performance</a></li><li><a
title="Category: Programming" href="http://www.itscodingtime.com/category/Programming.aspx">Programming</a></li><li><a
title="Category: QuickTips" href="http://www.itscodingtime.com/category/QuickTips.aspx">QuickTips</a></li><li><a
title="Category: Reflection" href="http://www.itscodingtime.com/category/Reflection.aspx">Reflection</a></li><li><a
title="Category: Regular Expressions" href="http://www.itscodingtime.com/category/Regular-Expressions.aspx">Regular Expressions</a></li><li><a
title="Category: shortcuts" href="http://www.itscodingtime.com/category/shortcuts.aspx">shortcuts</a></li><li><a
title="Category: Silverlight" href="http://www.itscodingtime.com/category/Silverlight.aspx">Silverlight</a></li><li><a
title="Category: Silverlight Controls" href="http://www.itscodingtime.com/category/Silverlight-Controls.aspx">Silverlight Controls</a></li><li><a
title="Category: Source Control" href="http://www.itscodingtime.com/category/Source-Control.aspx">Source Control</a></li><li><a
title="Category: SQL Server" href="http://www.itscodingtime.com/category/SQL-Server.aspx">SQL Server</a></li><li><a
title="Category: Tools" href="http://www.itscodingtime.com/category/Tools.aspx">Tools</a></li><li><a
title="Category: Troubleshooting" href="http://www.itscodingtime.com/category/Troubleshooting.aspx">Troubleshooting</a></li><li><a
title="Category: Unit Testing" href="http://www.itscodingtime.com/category/Unit-Testing.aspx">Unit Testing</a></li><li><a
title="Category: Visual Studio" href="http://www.itscodingtime.com/category/Visual-Studio.aspx">Visual Studio</a></li><li><a
title="Category: Visual Studio 2010" href="http://www.itscodingtime.com/category/Visual-Studio-2010.aspx">Visual Studio 2010</a></li><li><a
title="Category: WCF" href="http://www.itscodingtime.com/category/WCF.aspx">WCF</a></li><li><a
title="Category: Web Sites" href="http://www.itscodingtime.com/category/Web-Sites.aspx">Web Sites</a></li><li><a
title="Category: Windows 7" href="http://www.itscodingtime.com/category/Windows-7.aspx">Windows 7</a></li><li><a
title="Category: Windows Phone" href="http://www.itscodingtime.com/category/Windows-Phone.aspx">Windows Phone</a></li><li><a
title="Category: WPF" href="http://www.itscodingtime.com/category/WPF.aspx">WPF</a></li></ul></div></div><div
id="main"><div
id="postnavigation"><a
id="ctl00_cphBody_hlPrev" title="Previous post" href="http://idealprogrammer.com/itscodingtime/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx">&lt;&lt; Visual Studio 2010 Keyboard &amp; Mouse Shortcuts</a> | <a
id="ctl00_cphBody_hlNext" title="Next post" href="http://idealprogrammer.com/itscodingtime/post/The-IIS-SEO-Toolkit.aspx">The IIS SEO Toolkit &gt;&gt;</a></div><div
class="post-main"><h1 class="postheader"><a
class="postheader" href="http://www.itscodingtime.com/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx">Writing a (Completely Useless) Windows 7 <span
class="green">Gadget using Silverlight</span></a></h1><div
class="date">November 11, 2009 21:12</div><div
style="margin-top: -10px; border-top: black 1px dotted">&nbsp;</div><p></p><div
class="retweet"><script type="text/javascript">
			tweetcount_url = 'http://www.itscodingtime.com/itscodingtime/post/Writing-a-(Completely-Useless)-Windows-7-Gadget-using-Silverlight.aspx';
			tweetcount_title = 'Writing a (Completely Useless) Windows 7 Gadget using Silverlight';
			tweetcount_src = 'RT itscodingtime.com -';
			tweetcount_via = false;
		</script><br
/><script type="text/javascript" src="http://widgets.backtype.com/tweetcount.js"></script><br
/> <iframe
height="60" src="http://widgets.backtype.com/tweetcount?url=http%3A//www.itscodingtime.com/itscodingtime/post/Writing-a-%28Completely-Useless%29-Windows-7-Gadget-using-Silverlight.aspx&amp;cnt=false&amp;src=RT%20itscodingtime.com%20-&amp;via=false&amp;title=Writing%20a%20(Completely%20Useless)%20Windows%207%20Gadget%20using%20Silverlight" frameborder="0" width="52" allowtransparency="allowtransparency" scrolling="no"></iframe></div><p><br
/><pre class="alteven"><span class="lnum">   2:</span> <span class="kwrd">&lt;</span><span class="html">gadget</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>   <span class="kwrd">&lt;</span><span class="html">name</span><span class="kwrd">&gt;</span>Gadget Name Here<span class="kwrd">&lt;/</span><span class="html">name</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span>   <span class="kwrd">&lt;</span><span class="html">namespace</span><span class="kwrd">&gt;</span>YourCompanyNameHere<span class="kwrd">&lt;/</span><span class="html">namespace</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span>   <span class="kwrd">&lt;</span><span class="html">version</span><span class="kwrd">&gt;</span>1.0.0.0<span class="kwrd">&lt;/</span><span class="html">version</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span>   <span class="kwrd">&lt;</span><span class="html">author</span> <span class="attr">name</span>=&rdquo;<span class="attr">Company</span> <span class="attr">Name</span> <span class="attr">Here</span>&rdquo;<span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   7:</span>     <span class="kwrd">&lt;</span><span class="html">info</span> <span class="attr">url</span>=&rdquo;<span class="attr">http:</span>//<span class="attr">contoso</span>.<span class="attr">com</span>&rdquo; <span class="attr">text</span>=&rdquo;<span class="attr">Visit</span> <span class="attr">our</span> <span class="attr">Web</span> <span class="attr">site</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   8:</span>     <span class="kwrd">&lt;</span><span class="html">logo</span> <span class="attr">src</span>=&rdquo;<span class="attr">logo</span>.<span class="attr">png</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   9:</span>   <span class="kwrd">&lt;/</span><span class="html">author</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  10:</span>   <span class="kwrd">&lt;</span><span class="html">copyright</span><span class="kwrd">&gt;</span>&amp;#0169; 2007<span class="kwrd">&lt;/</span><span class="html">copyright</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  11:</span>   <span class="kwrd">&lt;</span><span class="html">description</span><span class="kwrd">&gt;</span>your gadget description<span class="kwrd">&lt;/</span><span class="html">description</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  12:</span>   <span class="kwrd">&lt;</span><span class="html">icons</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  13:</span>     <span class="kwrd">&lt;</span><span class="html">icon</span> <span class="attr">width</span>=&rdquo;<span class="attr">64</span>&rdquo; <span class="attr">height</span>=&rdquo;<span class="attr">64</span>&rdquo; <span class="attr">src</span>=&rdquo;<span class="attr">icon</span>.<span class="attr">png</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  14:</span>   <span class="kwrd">&lt;/</span><span class="html">icons</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  15:</span>   <span class="kwrd">&lt;</span><span class="html">hosts</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  16:</span>     <span class="kwrd">&lt;</span><span class="html">host</span> <span class="attr">name</span>=&rdquo;<span class="attr">sidebar</span>&rdquo;<span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  17:</span>       <span class="kwrd">&lt;</span><span class="html">base</span> <span class="attr">type</span>=&rdquo;<span class="attr">HTML</span>&rdquo; <span class="attr">apiVersion</span>=&rdquo;<span class="attr">1</span>.<span class="attr">0</span>.<span class="attr">0</span>&rdquo; <span class="attr">src</span>=&rdquo;<span class="attr">gadget</span>.<span class="attr">html</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  18:</span>       <span class="kwrd">&lt;</span><span class="html">permissions</span><span class="kwrd">&gt;</span>full<span class="kwrd">&lt;/</span><span class="html">permissions</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  19:</span>       <span class="kwrd">&lt;</span><span class="html">platform</span> <span class="attr">minPlatformVersion</span>=&rdquo;<span class="attr">0</span>.<span class="attr">3</span>&rdquo; <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  20:</span>     <span class="kwrd">&lt;/</span><span class="html">host</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  21:</span>   <span class="kwrd">&lt;/</span><span class="html">hosts</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  22:</span> <span class="kwrd">&lt;/</span><span class="html">gadget</span><span class="kwrd">&gt;</span>
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_2457);" href="javascript:void(0);">View Plain</a></div></div><div
id="CopyToClipboard_Hidden" style="display: none">&nbsp;</div><div
id="CopyToClipboard_FlashContainer">&nbsp;</div><p><script type="text/javascript">

					function CopyToClipboard_Strip( text ){
						text = text.replace( /&nbsp;/g, ' ' );
						text = text.replace( /&quot;/g, '"' );
						text = text.replace( /&#39;/g, '"' );
						text = text.replace( /&amp;/g, '&' );
						text = text.replace( /&lt;/g, String.fromCharCode(60) );
						text = text.replace( /&gt;/g, String.fromCharCode(62) );
						return text;
					}

					function CopyToClipboard_Copy(text)
					{
						if (window.clipboardData)
						{
							window.clipboardData.setData('text',text);
						}
						else
						{
							var clipboarddiv=document.getElementById('divclipboardswf');
							if(clipboarddiv==null)
							{
								clipboarddiv=document.createElement('div');
								clipboarddiv.setAttribute("name", "divclipboardswf");
								clipboarddiv.setAttribute("id", "divclipboardswf");
								document.body.appendChild(clipboarddiv);
							}

							clipboarddiv.innerHTML='<embed src="http://www.itscodingtime.com/_clipboard.swf" FlashVars="clipboard='+
								encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
						}

						return false;
					}
                    
					//function CopyToClipboard_Copy( text ){

						//### get reference to utility div
					//	var ele = document.getElementById('CopyToClipboard_Hidden');

						//### the following taken from: http://webchicanery.com/2006/11/14/clipboard-copy-javascript/
					//	if (false && window.clipboardData) {
					//		window.clipboardData.setData( "Text", text );
					//	} else {
					//		document.getElementById('CopyToClipboard_FlashContainer').innerHTML = '';
					//		var divinfo = '<embed id="CopyToClipboard_FlashFile" src="/itscodingtime/_clipboard.swf" FlashVars="clipboard=' + encodeURIComponent(text) + '" width="0" height="0" type="application/x-shockwave-flash"></embed>';
					//		document.getElementById('CopyToClipboard_FlashContainer').innerHTML = divinfo;
					//	}
                    //}

					function CopyToClipboard_ViewPlain( text ){
						var win = window.open( '', 'CopyToClipboard_Window', 'width=480, height=480, toolbar=no, menubar=no, scrollbars=auto, resizable=yes, location=no, directories=no, status=no' );
						win.document.write( '<html><head><title>Code</title><body style="margin:0;padding:0;"><textarea style="width:100%;height:100%;border:0;">' + text + '</textarea></body></head></html>' );
					}

                </script><br
/><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_2457 = CopyToClipboard_Strip('&lt;?xml version=&rdquo;1.0&rdquo; encoding=&rdquo;utf-8&rdquo; ?&gt;\r\n&lt;gadget&gt;\r\n  &lt;name&gt;Gadget Name Here&lt;/name&gt;\r\n  &lt;namespace&gt;YourCompanyNameHere&lt;/namespace&gt;\r\n  &lt;version&gt;1.0.0.0&lt;/version&gt;\r\n  &lt;author name=&rdquo;Company Name Here&rdquo;&gt;\r\n    &lt;info url=&rdquo;http://contoso.com&rdquo; text=&rdquo;Visit our Web site&rdquo; /&gt;\r\n    &lt;logo src=&rdquo;logo.png&rdquo; /&gt;\r\n  &lt;/author&gt;\r\n  &lt;copyright&gt;&amp;#0169; 2007&lt;/copyright&gt;\r\n  &lt;description&gt;your gadget description&lt;/description&gt;\r\n  &lt;icons&gt;\r\n    &lt;icon width=&rdquo;64&rdquo; height=&rdquo;64&rdquo; src=&rdquo;icon.png&rdquo; /&gt;\r\n  &lt;/icons&gt;\r\n  &lt;hosts&gt;\r\n    &lt;host name=&rdquo;sidebar&rdquo;&gt;\r\n      &lt;base type=&rdquo;HTML&rdquo; apiVersion=&rdquo;1.0.0&rdquo; src=&rdquo;gadget.html&rdquo; /&gt;\r\n      &lt;permissions&gt;full&lt;/permissions&gt;\r\n      &lt;platform minPlatformVersion=&rdquo;0.3&rdquo; /&gt;\r\n    &lt;/host&gt;\r\n  &lt;/hosts&gt;\r\n&lt;/gadget&gt;\r\n');
					</script></p><p>Donavon says this about the XML content:</p><blockquote><p>Most of the elements in the definition file are used for displaying the gadget in the gallery. The one truly functional element is the src attribute of the base element&mdash;this points to the HTML file that will kickstart the gadget. I make it a practice to name this file gadget.html, but any valid filename will do.</p></blockquote><p>So it&#039;s the XML file that acts as a bridge between the gadget hosting app (still sidebar.exe in Windows 7) and the gadget itself.</p><h4>Creating a Windows Gadget using Silverlight</h4><p>Creating a gadget that uses Silverlight is surprisingly easy.</p><p>1.) Start with a basic Silverlight Application project:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_3.png" width="656" height="454" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><p>I&#039;ll call mine SilverlightGadget.</p><p>I&#039;ll host the control in an ASP.NET Web Site and use Silverlight 3:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_4.png" width="520" height="418" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><p>&nbsp;</p><p>Once the project is created, you can delete the SilverlightGadgetTestPage.aspx from the web site (we aren&#039;t going to use it). I also renamed the SilverlightGadgetTestPage.html file to just gadget.html as Donavon recommends.</p><p>2.) Next, add a new .xml file to the web site. I called this file gadget.xml to match the naming of the HTML file. Copy the generic &lt;gadget&gt; contents shown above into this new file. You can update information in the file as you see fit. For purposes of this demo, I&#039;ll just leave it the way it is except for the gadget&#039;s &lt;name&gt; which I&#039;ll call SilverlightGadget. The really important line is this file is:</p><blockquote><p>&lt;base type=&quot;HTML&quot; apiVersion=&quot;1.0.0&quot; src=&quot;gadget.html&quot; /&gt;</p></blockquote><p>Make sure &quot;src&quot; points to your HTML file.</p><p>3.) In gadget.html, we have a couple of changes to make:</p><p>a. Make the &quot;html, body&quot; style read &quot;height: 80px; width: 130px;&quot;</p><div
id="codeSnippetWrapper" class="csharpcode-wrapper"><div
id="codeSnippet" class="csharpcode"><pre class="alt"><span class="lnum">   1:</span> <span class="kwrd">html</span>, <span class="kwrd">body</span> {
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   2:</span>     <span class="kwrd">height</span>: <span class="str">80px;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>     <span class="kwrd">width</span>: <span class="str">130px;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span> }
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_15010);" href="javascript:void(0);">View Plain</a></div></div><p><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_15010 = CopyToClipboard_Strip('html, body {\r\n    height: 80px;\r\n    width: 130px;\r\n}\r\n');
					</script></p><p>Make sure to remove the overflow style. It was causing me problems, specifically causing horizontal and vertical scrollbars to display.</p><p>The height value was arbitrary; you&#039;ll want to adjust based on the content of your gadget. But the width of 130px was a maximum under Vista for a docked gadget. In Windows 7, however, this doesn&#039;t seem to apply as I was able to make the gadget as wide as I wanted. Still, all of the other docked gadgets that I have do not exceed this width, so I went with the standard 130px.</p><p>b. Add the following param to the list of object &lt;param&gt; tags:</p><blockquote><p>&lt;param name=&quot;windowless&quot; value=&quot;true&quot; /&gt;</p></blockquote><p>This seemed to have the effect of enabling the gadget handles when you mouseover the gadget.</p><p>4.) Now, in the XAML, I&#039;ll remove the height and width attributes from the UserControl and add a simple button inside the default grid. This gives me:</p><div
id="codeSnippetWrapper" class="csharpcode-wrapper"><div
id="codeSnippet" class="csharpcode"><pre class="alt"><span class="lnum">   1:</span> <span class="kwrd">&lt;</span><span class="html">UserControl</span> <span class="attr">x:Class</span><span class="kwrd">=&quot;SilverlightGadget.MainPage&quot;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   2:</span>     <span class="attr">xmlns</span><span class="kwrd">=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span>     <span class="attr">xmlns:x</span><span class="kwrd">=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span>     <span class="attr">xmlns:d</span><span class="kwrd">=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span>     <span class="attr">xmlns:mc</span><span class="kwrd">=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span>     <span class="attr">mc:Ignorable</span><span class="kwrd">=&quot;d&quot;</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   7:</span>&nbsp; 
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   8:</span>     <span class="kwrd">&lt;</span><span class="html">Grid</span> <span class="attr">x:Name</span><span class="kwrd">=&quot;LayoutRoot&quot;</span> <span class="attr">Background</span><span class="kwrd">=&quot;RosyBrown&quot;</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   9:</span>         <span class="kwrd">&lt;</span><span class="html">Button</span> <span class="attr">Background</span><span class="kwrd">=&quot;AliceBlue&quot;</span> <span class="attr">Width</span><span class="kwrd">=&quot;70&quot;</span> <span class="attr">Height</span><span class="kwrd">=&quot;30&quot;</span> <span class="attr">Content</span><span class="kwrd">=&quot;Click&quot;</span>  <span class="kwrd">/&gt;</span>
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">  10:</span>     <span class="kwrd">&lt;/</span><span class="html">Grid</span><span class="kwrd">&gt;</span>
</pre><br
/> <br
/><pre class="alt"><span class="lnum">  11:</span> <span class="kwrd">&lt;/</span><span class="html">UserControl</span><span class="kwrd">&gt;</span>
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_17043);" href="javascript:void(0);">View Plain</a></div></div><p><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_17043 = CopyToClipboard_Strip('&lt;UserControl x:Class=&quot;SilverlightGadget.MainPage&quot;\r\n    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;\r\n    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;\r\n    xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;\r\n    xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;\r\n    mc:Ignorable=&quot;d&quot;&gt;\r\n \r\n    &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;RosyBrown&quot;&gt;\r\n        &lt;Button Background=&quot;AliceBlue&quot; Width=&quot;70&quot; Height=&quot;30&quot; Content=&quot;Click&quot;  /&gt;\r\n    &lt;/Grid&gt;\r\n&lt;/UserControl&gt;\r\n');
					</script></p><p>Yes, I do realize this is a completely useless Silverlight control, but, for now, I&#039;m just trying to demonstrate how to build the gadget by laying some groundwork. Perhaps in a future post I&#039;ll share some more useful Silverlight controls to host inside a gadget.</p><p>That should be it for the project/code changes. Now, let&#039;s install the gadget and see just how useless my one button control is.</p><h4>Installing the Silverlight Gadget</h4><p>As mentioned above, a gadget is a just a zip file with the extension .gadget. The easiest way to create a .gadget file is therefore to just use your favorite zip program. Mine is 7za, which I use inside a batch file so that I just double-click or run the batch file from the command line in order to both create and install the gadget.</p><p>Here&#039;s the sequence of commands (I run this from the project root; the batch file sits alongside the .sln file):</p><div
id="codeSnippetWrapper" class="csharpcode-wrapper"><div
id="codeSnippet" class="csharpcode"><pre class="alt"><span class="lnum">   1:</span> cd SilverlightGadget.Web
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   2:</span> del *.gadget
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   3:</span> 7za a -r silverlightgadget.zip *
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   4:</span> rename *.zip *.gadget
</pre><br
/> <br
/><pre class="alt"><span class="lnum">   5:</span> silverlightgadget.gadget
</pre><br
/> <br
/><pre class="alteven"><span class="lnum">   6:</span> cd ..
</pre><br
/></div></div><div
class="CopyToClipboard"><div><a
onclick="CopyToClipboard_ViewPlain(copyToClipboard378831c66f754862a35e434c33c961d2_21635);" href="javascript:void(0);">View Plain</a></div></div><p><script type="text/javascript">
						var copyToClipboard378831c66f754862a35e434c33c961d2_21635 = CopyToClipboard_Strip('cd SilverlightGadget.Web\r\ndel *.gadget\r\n7za a -r silverlightgadget.zip *\r\nrename *.zip *.gadget\r\nsilverlightgadget.gadget\r\ncd ..\r\n');
					</script></p><p>I&#039;m just zipping up the whole web site, including the .xap and even the web.config, which isn&#039;t needed but this is just demo code so who cares. <img
src='http://idealprogrammer.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><p>Installing the gadget is as easy as double-clicking the .gadget file or typing the name at the command line and hitting enter. You&#039;ll be prompted to install the gadget. Click &quot;Install&quot; and prepared to be impressed:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_5.png" width="162" height="111" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><p>Here it is alongside some other gadgets for better context:</p><p><img
title="image" border="0" alt="image" src="http://idealprogrammer.com/blogpostimages/WritingaWindows7GadgetusingSilverlight_736B/image_6.png" width="149" height="311" style="border-right-width: 0px; margin: 20px auto; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" /></p><h4>Conclusion</h4><p>While there are a handful of manual steps involved in creating a Silverlight gadget, they&#039;re fairly easy ones. It would be great if <a
href="http://www.microsoft.com/visualstudio">Visual Studio</a> just had a project template for this, but it doesn&#039;t. There are, however, some alternatives out there, including <a
href="http://timheuer.com/blog/archive/2007/03/11/14010.aspx">one</a> that does not create a base Silverlight project by Tim Heuer and <a
href="http://www.lazarciuc.ro/ioan/2008/08/02/creating-a-vista-sidebar-gadget-using-microsoft-silverlight/">another</a> by Ioan Lazarciuc which does, but which creates a plethora of projects in the process. In other words, I haven&#039;t found a satisfactory Silverlight gadget template yet, so the above steps will have to do for the time being.</p></div></div></div><p>Thanks to it&#039;scodingtime.com</p><p><a
href="http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/">creating a widget for windows 7 using silverlight</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/' rel='bookmark' title='Permanent Link: Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert'>Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> <small>This free six-hour video series is entitled - "Look What...</small></li><li><a
href='http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/' rel='bookmark' title='Permanent Link: Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)'>Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)</a> <small>Interested in Silverlight 3? Here you will find four hours...</small></li><li><a
href='http://idealprogrammer.com/net-languages/visual-studio-c/visual-studio-c-july-15-2009/' rel='bookmark' title='Permanent Link: Visual Studio c# &#8211; July 15, 2009:ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight 3,IIS Search Engine Optimization Toolkit'>Visual Studio c# &#8211; July 15, 2009:ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight 3,IIS Search Engine Optimization Toolkit</a> <small>Scott Gu on: ASP.NET, AJAX, ASP.NET MVC, Visual Studio, Silverlight...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/net-languages/silverlight/creating-widget-windows-7-silverlight/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)</title><link>http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/</link> <comments>http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/#comments</comments> <pubDate>Fri, 10 Jul 2009 05:26:23 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[Silverlight]]></category> <category><![CDATA[Videos]]></category> <category><![CDATA[expression web designer]]></category> <category><![CDATA[ms expression]]></category> <category><![CDATA[Silverlight 3 download]]></category> <category><![CDATA[silverlight 3 tutorial]]></category> <category><![CDATA[silverlight xml]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=322</guid> <description><![CDATA[Interested in Silverlight 3? Here you will find four hours of free video tutorials by Microsoft experts.  Jesse Liberty and his cohorts describe the new features available in Silverlight 3<p><a
href="http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/">Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/' rel='bookmark' title='Permanent Link: Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert'>Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> <small>This free six-hour video series is entitled - "Look What...</small></li><li><a
href='http://idealprogrammer.com/videos/linq-free-video-tutorials-by-microsoft-experts-12-hours/' rel='bookmark' title='Permanent Link: NET LINQ Free Video Tutorials by Microsoft Experts &#8211; 12 Hours'>NET LINQ Free Video Tutorials by Microsoft Experts &#8211; 12 Hours</a> <small>Here are ten hours of free video tutorials on LINQ....</small></li><li><a
href='http://idealprogrammer.com/videos/24-hours-of-sql-server-2008-presented-by-microsoft-experts/' rel='bookmark' title='Permanent Link: 24 Hours of SQL Server 2008 &#8211; A Video Tutorial presented by Microsoft Experts'>24 Hours of SQL Server 2008 &#8211; A Video Tutorial presented by Microsoft Experts</a> <small>24 hours of free video tutorials on using SQL Server...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p
class="lead"><a
title="IE8 Präsentation (Silverlight)" href="http://www.flickr.com/photos/33694690@N07/3336918816/" target="_blank"><img
class="alignright" style="border: 0pt none; margin: 5px; float: right;" src="http://farm4.static.flickr.com/3284/3336918816_6f4dbc6739_m.jpg" border="0" alt="IE8 Präsentation (Silverlight): silverlight 3 tutorial, Silverlight 3 download, silverlight xml,  ms expression, expression web designer" /></a>Interested in <a
rel="tag" href="http://blogs.icerocket.com/tag/Silverlight+3+Tutorial" target="_blank">Silverlight 3 Tutorial</a>? Here you will find four hours of free Silverlight 3 <a
href="http://www.LearnVisualStudio.NET/119.html"  target='_blank'  rel='nofollow' >video tutorials</a> by Microsoft experts. Jesse Liberty and his cohorts describe the new features available in <a
rel="tag" href="https://www.google.com/#hl=en&amp;sugexp=pfwl&amp;cp=20&amp;gs_id=2c&amp;xhr=t&amp;q=Silverlight+3" target="_blank">Silverlight 3</a>.</p><p><strong>Background:</strong> &#8211; Silverlight 3 was released on July 9, 2009.</p><p>Silverlight 3 includes an increased number of controls:</p><ul><li>DataGrid</li><li>TreeView</li><li>various layout panels</li><li>DataForm for forms-driven applications</li><li>DataPager for viewing paginated data</li></ul><p> Silverlight 3 includes a navigation framework that allows Silverlight applications to use the hyperlinked navigation model as well as enabling deep-linking (linking directly to specific pages) within Silverlight applications</p><p>Silverlight 3 supports:</p><ul><li>audio decoding</li><li>hardware-accelerated H.264 video decoding</li><li>1080p smooth streaming</li><li>perspective 3D which enables 3D transformations of 2D elements</li><li>A Bitmap API</li><li>GPU to accelerate the composition of Visual Trees</li><li>Visual trees can now be cached</li><li>ClearType text rendering</li><li>element-to-element binding</li><li>Out-of-Browser experiences</li></ul><p>Installed Silverlight 3 applications automatically check for updates asynchronously on every launch and updates are automatically installed. Running instances of the applications are informed when updates are available.</p><p> Be sure to check out the other series that Jesse Liberty has done on Silverlight. You can find them in the <a
href="http://idealprogrammer.com/languages/silverlight/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/">Silverlight 2</a> video series in the Advanced Series category at Progress Monitor.</p><p>&nbsp;<br
/> <small><a
title="Attribution-NoDerivs License" href="http://creativecommons.org/licenses/by-nd/2.0/" target="_blank"><img
src="http://idealprogrammer.com/wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absMiddle" /></a> <a
href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a
title="Yoshi5000" href="http://www.flickr.com/photos/33694690@N07/3336918816/" target="_blank">Yoshi5000</a></small> <br
/>&nbsp;</p><h1>Silverlight 3</h1><p>&nbsp;</p><table
id="ctl00_ContentPlaceHolder1_GridView1" style="font width: 100%; color: black; position: relative; background-color: #cccccc; border: #999999 3px solid;" border="3" cellspacing="2" cellpadding="4" rules="all"><tbody><tr
style="color:White;background-color:Black;font-weight:bold;"><th
scope="col"><a
style="color:White;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Num')">Num</a></th><th
scope="col"><a
style="color:White;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Series')">Series</a></th><th
scope="col"><a
style="color:White;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Title')">Title</a></th><th
scope="col"><a
style="color:White;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Date')">Date</a></th><th
scope="col"><a
style="color:White;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Presenter')">Presenter</a></th><th
scope="col"><a
style="color:White;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GridView1','Sort$Min')">Min</a></th></tr><tr
style="background-color:White;"><td>83</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187310" target="_blank">DOMAIN UPDOWN CONTROL </a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label1">30</span></td></tr><tr
style="background-color:White;"><td>84</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187314" target="_blank">TIME INPUT CONTROL </a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl03_Label1">25</span></td></tr><tr
style="background-color:White;"><td>85</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187316" target="_blank">SAVEFILEDIALOG API </a></td><td>3/18/2009</td><td>Laurence Moroney</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl04_Label1">8</span></td></tr><tr
style="background-color:White;"><td>86</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187308" target="_blank">USING 3D TRANSFORMS, PART 1</a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl05_Label1">16</span></td></tr><tr
style="background-color:White;"><td>87</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=189248" target="_blank">USING 3D TRANSFORMS, PART 2</a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl06_Label1">16</span></td></tr><tr
style="background-color:White;"><td>88</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187309" target="_blank">ELEMENT TO ELEMENT BINDING </a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl07_Label1">6</span></td></tr><tr
style="background-color:White;"><td>89</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187303" target="_blank">PIXEL EFFECTS </a></td><td>3/18/2009</td><td>Mike Taulty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl08_Label1">24</span></td></tr><tr
style="background-color:White;"><td>90</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=189858" target="_blank">ANIMATION EASING LIBRARIES </a></td><td>3/18/2009</td><td>Laurence Moroney</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl09_Label1">7</span></td></tr><tr
style="background-color:White;"><td>91</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187317" target="_blank">DATAFORM CONTROL </a></td><td>3/18/2009</td><td>Mike Taulty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl10_Label1">26</span></td></tr><tr
style="background-color:White;"><td>92</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187320" target="_blank">LOCALCONNECTION API </a></td><td>3/18/2009</td><td>Tim Heuer</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl11_Label1">12</span></td></tr><tr
style="background-color:White;"><td>93</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187318" target="_blank">OUT-OF-BROWSER EXPERIENCES </a></td><td>3/18/2009</td><td>Tim Heuer</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl12_Label1">24</span></td></tr><tr
style="background-color:White;"><td>94</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=187319" target="_blank">NAVIGATION FRAMEWORK </a></td><td>3/18/2009</td><td>Tim Heuer</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl13_Label1">26</span></td></tr><tr
style="background-color:White;"><td>95</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=200454" target="_blank">SILVERLIGHT TOOLKIT: ACCORDION CONTROL </a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl14_Label1">20</span></td></tr><tr
style="background-color:White;"><td>96</td><td>Silverlight 3 Beta</td><td><a
href="http://silverlight.net/learn/learnvideo.aspx?video=216916" target="_blank">SILVERLIGHT TOOLKIT: ANIMATEDTRANSITION CONTROL </a></td><td>3/18/2009</td><td>Jesse Liberty</td><td><span
id="ctl00_ContentPlaceHolder1_GridView1_ctl15_Label1">18</span></td></tr><tr
style="background-color:#CCCCCC;"><td> </td><td> </td><td> </td><td> </td><td>Total</td><td
style="font-weight:bold;">258</td></tr></tbody></table><p>&nbsp;</p><p><a
href="http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/">Silverlight 3 Tutorial &#8211; (Four Hours of Free Videos by Microsoft Experts)</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/' rel='bookmark' title='Permanent Link: Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert'>Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> <small>This free six-hour video series is entitled - "Look What...</small></li><li><a
href='http://idealprogrammer.com/videos/linq-free-video-tutorials-by-microsoft-experts-12-hours/' rel='bookmark' title='Permanent Link: NET LINQ Free Video Tutorials by Microsoft Experts &#8211; 12 Hours'>NET LINQ Free Video Tutorials by Microsoft Experts &#8211; 12 Hours</a> <small>Here are ten hours of free video tutorials on LINQ....</small></li><li><a
href='http://idealprogrammer.com/videos/24-hours-of-sql-server-2008-presented-by-microsoft-experts/' rel='bookmark' title='Permanent Link: 24 Hours of SQL Server 2008 &#8211; A Video Tutorial presented by Microsoft Experts'>24 Hours of SQL Server 2008 &#8211; A Video Tutorial presented by Microsoft Experts</a> <small>24 hours of free video tutorials on using SQL Server...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/videos/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</title><link>http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/</link> <comments>http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/#comments</comments> <pubDate>Sat, 31 Jan 2009 15:13:04 +0000</pubDate> <dc:creator>asp.net videos</dc:creator> <category><![CDATA[Silverlight]]></category> <category><![CDATA[Videos]]></category> <category><![CDATA[expression web designer]]></category> <category><![CDATA[ms expression]]></category> <category><![CDATA[Silverlight 2 download]]></category> <category><![CDATA[silverlight xml]]></category><guid
isPermaLink="false">http://idealprogrammer.com/?p=309</guid> <description><![CDATA[This free six-hour video series is entitled - "Look What you can do with Silverlight 2."  Silverlight is  a cross-browser, cross-platform plug-in for delivering the next generation of Microsoft .NET Framework-based media experiences and rich interactive applications for the Web.<p><a
href="http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/">Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/windows-presentation-foundation-18-hours-of-free-video-tutorials/' rel='bookmark' title='Permanent Link: Windows Presentation Foundation-18 Hours of Free Video Tutorials'>Windows Presentation Foundation-18 Hours of Free Video Tutorials</a> <small>Windows Presentation Foundation - 18 hours of free video tutorial...</small></li><li><a
href='http://idealprogrammer.com/videos/windows-communication-foundation-15-hours-of-free-video-tutorials/' rel='bookmark' title='Permanent Link: Windows Communication Foundation &#8211; 15 Hours of Free Video Tutorials'>Windows Communication Foundation &#8211; 15 Hours of Free Video Tutorials</a> <small>15 FREE one-hour video tutorials on Windows Communication Foundation by...</small></li><li><a
href='http://idealprogrammer.com/videos/architecting-desktop-applications-with-20/' rel='bookmark' title='Permanent Link: Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials'>Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials</a> <small>"Architecting Modern Desktop Applications in.NET" is a 15-part 25+ hour...</small></li></ol>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description> <content:encoded><![CDATA[<p
class="lead"><a
title="ScottGu: Silverlight on the Web Today" href="http://www.flickr.com/photos/45467970@N00/3365192833/" target="_blank"><img
class="alignright" style="border: 0pt none; margin: 5px; float: right;" src="http://farm4.static.flickr.com/3559/3365192833_f22f36350c_m.jpg" border="0" alt="ScottGu: Silverlight on the Web Today/Silverlight video Tutorial,Silverlight 2 download, silverlight xml,  ms expression, expression web designer" /></a>This free six-hour video tutorial series is entitled &#8211; &#034;Look What you can do with Silverlight 2.&#034; Silverlight is  a cross-browser, cross-platform plug-in for delivering the next generation of Microsoft .NET Framework-based media experiences and rich interactive applications for the Web. Microsoft also has a great <a
href="http://silverlight.net/learn/videocat.aspx?cat=2#HDI2Basics" target="_blank">How Do I Video Series on Silverlight</a> that can be viewed at <a
href="http://silverlight.net/learn/videocat.aspx?cat=2#HDI2Basics" target="_blank">silverlight.net/learn</a></p><p>These series cover the following topics: <a
rel="tag" href="http://blogs.icerocket.com/tag/Silverlight+2+download" target="_blank">Silverlight 2 download</a>, <a
rel="tag" href="https://www.google.com/#hl=en&amp;sugexp=pfwl&amp;cp=20&amp;gs_id=2c&amp;xhr=t&amp;q=silverlight+xml" target="_blank">silverlight xml</a>, ms expression, expression web designer.</p><p>Be sure to also check out the 4 hours of free <a
href="http://www.LearnVisualStudio.NET/119.html"  target='_blank'  rel='nofollow' >video tutorials</a> on Silverlight 3 and <a
href="http://idealprogrammer.com/languages/silverlight/silverlight-3-four-hours-of-free-video-tutorials-by-microsoft-experts/">ms expression</a>.</p><p><strong>Presenter: </strong>Lindsay Rutter, Developer Evangelist, Microsoft Corporation<br
/> <small><a
title="Attribution-NoDerivs License" href="http://creativecommons.org/licenses/by-nd/2.0/" target="_blank"><img
src="http://idealprogrammer.com/wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absMiddle" /></a> <a
href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a
title="scorbette37" href="http://www.flickr.com/photos/45467970@N00/3365192833/" target="_blank">scorbette37</a></small> <br
/>&nbsp;</p><h2>Silverlight 2</h2><p>&nbsp;</p><table
border="1" cellspacing="0" cellpadding="0" width="100%" frame="border" bgcolor="#fafafa" bordercolor="#000000"><tbody><tr
bordercolor="#000000"><td
width="100%" align="left" bgcolor="#dbdbdb" bordercolor="#000000">1. <a
href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032380305&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">Overview of Silverlight 2 and the WPF UI Framework</a></td></tr><tr
bordercolor="#000000"></p><td
align="left" valign="top" bordercolor="#000000"><strong>Key Concepts:</strong>A.Overview of Silverlight 2<br
/> B. Silverligt 2 architecture<br
/> C. the new features specific to Silverlight 2<br
/> D. Silverlight tools: Microsoft Visual Studio 2008 and Microsoft Expression Blend<br
/> E. Windows Presentation Foundation (WPF) UI framework for Silverlight, which is a subset of the WPF UI framework for the desktop and Windows Presentation Foundation<br
/> F. Silverlight controls<br
/> G. How to render content correctly when you resize the page<br
/> H. Silverlight controls: including Button, Calendar, ListBox, Image, Grid, Slider, and TextBox.</p><p><span
style="font-style: italic;">June 16, 2008 60 minutes</span></td></tr><tr
bordercolor="#000000"><td
width="100%" align="left" bgcolor="#dbdbdb" bordercolor="#000000">2. <a
href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032380309&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">WPF UI Framework Continued</a></td></tr><tr
bordercolor="#000000"></p><td
align="left" valign="top" bordercolor="#000000"><strong>Key Concepts:</strong>A. Microsoft Silverlight 2 Windows Presentation Foundation (WPF) UI framework<br
/> B. Data-binding support<br
/> C. Customizing the appearance of your controls with the templating and skinning model in Silverlight 2.<br
/> D. Bind UI elements to business objects for rich data scenarios with model, view, and container separation.<br
/> E. Control templating allows you to change color and style and the whole visual tree of your control and even add custom animations without writing code.</p><p><span
style="font-style: italic;">June 18, 2008 60 minutes</span></td></tr><tr
bordercolor="#000000"><td
width="100%" align="left" bgcolor="#dbdbdb" bordercolor="#000000">3. <a
href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032380312&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">Introducing Deep Zoom </a></td></tr><tr
bordercolor="#000000"></p><td
align="left" valign="top" bordercolor="#000000"><strong>Key Concepts:</strong>A. Deep Zoom allows users to easily and cleanly navigate through very large images and only download the portions of the images needed.<br
/> B. The considerations that you must make when working with large images<br
/> C. How Silverlight 2, Microsoft Visual Studio 2008, and Microsoft Expression Blend enable you to implement Deep Zoom in applications easily.</p><p><span
style="font-style: italic;">June 20, 2008 60 minutes</span></td></tr><tr
bordercolor="#000000"><td
width="100%" align="left" bgcolor="#dbdbdb" bordercolor="#000000">4. <a
href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032380315&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">Web Services Support</a></td></tr><tr
bordercolor="#000000"></p><td
align="left" valign="top" bordercolor="#000000"><strong>Key Concepts:</strong>A. Microsoft Silverlight 2 has a robust networking stack, and it supports Representational State Transfer (REST), SOAP, WS*, HTTP endpoints, and even cross-domain networking<br
/> B. Implementing calls to Web services from your Silverlight 2 Microsoft .NET-connected applications using a variety of methods, including standard ASP.NET Web Services (ASMX), Windows Communication Foundation (WCF) Services, and REST.</p><p><span
style="font-style: italic;">June 23, 2008 60 minutes</span></td></tr><tr
bordercolor="#000000"><td
width="100%" align="left" bgcolor="#dbdbdb" bordercolor="#000000">5. <a
href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032380320&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">Testing Framework</a></td></tr><tr
bordercolor="#000000"></p><td
align="left" valign="top" bordercolor="#000000"><strong>Key Concepts:</strong>A. New testing framework enables you to write unit tests for UI and non-UI functionality in Silverlight 2, and it includes more than 2,000 unit tests covering all of the released Silverlight 2 controls.<br
/> B. Built-in unit tests and how to build your own unit tests or extend the included unit tests<br
/> C. The support in Microsoft Visual Studio 2008 for debugging your Silverlight 2 applications.</p><p><span
style="font-style: italic;">June 25, 2008 60 minutes</span></td></tr><tr
bordercolor="#000000"><td
width="100%" align="left" bgcolor="#dbdbdb" bordercolor="#000000">6. <a
href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032380322&amp;EventCategory=5&amp;culture=en-US&amp;CountryCode=US" target="_blank">Adaptive Streaming</a></td></tr><tr
bordercolor="#000000"></p><td
align="left" valign="top" bordercolor="#000000"><strong>Key Concepts:</strong>A. Adaptive streaming is an addition to the rich media capabilities of Silverlight 2.<br
/> B. Adaptive streaming enables Silverlight 2 applications to examine the capabilities of the client computer, like CPU and bandwidth, and adjusts the bit-rate encoding of streaming video to handle network congestion and CPU usage automatically.<br
/> C. Other cool features of Silverlight 2<br
/> D. Silverlight Mobile.</p><p><span
style="font-style: italic;">July 25, 2007 9? minutes</span></td></tr></tbody></table><p>&nbsp;</p><p><a
href="http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/">Silverlight 2 &#8211; Six Hours of Free Video Tutorials by Microsoft Expert</a> is a post from: <a
href="http://idealprogrammer.com">IdealProgrammer.com</a></p><p>Related posts:<ol><li><a
href='http://idealprogrammer.com/net-languages/visual-basic-vbnet/windows-presentation-foundation-18-hours-of-free-video-tutorials/' rel='bookmark' title='Permanent Link: Windows Presentation Foundation-18 Hours of Free Video Tutorials'>Windows Presentation Foundation-18 Hours of Free Video Tutorials</a> <small>Windows Presentation Foundation - 18 hours of free video tutorial...</small></li><li><a
href='http://idealprogrammer.com/videos/windows-communication-foundation-15-hours-of-free-video-tutorials/' rel='bookmark' title='Permanent Link: Windows Communication Foundation &#8211; 15 Hours of Free Video Tutorials'>Windows Communication Foundation &#8211; 15 Hours of Free Video Tutorials</a> <small>15 FREE one-hour video tutorials on Windows Communication Foundation by...</small></li><li><a
href='http://idealprogrammer.com/videos/architecting-desktop-applications-with-20/' rel='bookmark' title='Permanent Link: Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials'>Architecting Desktop Applications with 2.0 &#8211; 15 Free Video Tutorials</a> <small>"Architecting Modern Desktop Applications in.NET" is a 15-part 25+ hour...</small></li></ol></p><p>Related posts brought to you by <a
href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded> <wfw:commentRss>http://idealprogrammer.com/videos/silverlight-2-six-hours-of-free-video-tutorials-by-microsoft-expert/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 28/90 queries in 0.050 seconds using disk: basic
Object Caching 1220/1248 objects using disk: basic

Served from: idealprogrammer.com @ 2012-05-21 10:11:19 -->
