MSDN Flash
UK MSDN Flash
12 December 2007
Editor's Intro


Hello

Welcome to the last MSDN Flash of this calendar year. Yes, we know that the next issue would be due on the 26, but we decided to take a break instead ;-)

I know you are all really sad and will miss us, so I have packed this issue with more content than usual to keep you going. Before you skip down to the article to learn how you can put two cool technologies together, please evaluate the Fresh section. If you don't find at least one thing of interest in this issue, then email me directly because I would find that shocking and would want to hear from you!

Looking on the Horizon, it looks like February and March are very busy conference months so you better get your batteries charged over the holiday season. All of us here wish you a very Merry Christmas and a Happy New Year.

Look out for our next Flash issue to arrive in your inbox on Wednesday 9 January.

Cheers
Daniel

MSDNMSDN EventsMSDN ScreencastsEvaluation CentreDeveloper CentresMSDN

Fresh Discoveries



Articles
Book
Inside Microsoft Exchange Server 2007 Web Services.
By David Sterling, Ben Spain, Mark Taylor and Huw Upshall.
Downloads
Download
ASP.NET 3.5 Extensions Preview.
A preview of new features being added to ASP.NET 3.5 and ADO.NET.
Downloads
Download
ADO.NET Entity Framework Beta 3.
Supports the production release of the Fx 3.5 plus adds new features.
Downloads
Video Recording
Going deep on the Entity Framework.
Brian Beckman and Sam Druker in this expert to expert conversation.
Downloads
Download
Parallel Extensions to .NET Framework 3.5 December CTP.
Model for data parallelism, task parallelism, and coordination on parallel hardware.
Downloads
Screencast
Parallel LINQ (PLINQ).
How to make your LINQ queries seamlessly take advantage of multi-core.
Downloads
Download
Volta – an experimental developer toolset.
Enables you to build declarative multi-tier web applications.
Downloads
Screencast
LINQ to XML with XPath.
How to use XPath queries with the LINQ to XML API.
Downloads
Podcast
FeedSync – two-way synchronisation of item sets.
Jon Udell interviews Steven Lees about the formerly known: SSE for Atom and RSS.
Articles
Blog
Ray Ozzie on Really Simple Sharing.
Simple Sharing Extensions (SSE) for RSS gets a new boost.
Downloads
Virtual Lab
Learn How to Build Occasionally Connected Applications with SQL Server 2008.
Explore how to build offline smart client applications in a RAD way.
Articles
Competition
Microsoft partners that have built a solution with Open XML can win an XBox.
Simply enter your solution, register it and email the ISV team.
Articles
Article
Microsoft Pays Visual Studio ‘Debt’.
eWeek interview with Soma on how VS2008 shipped on time.
Articles
Case Study
EMI Music uses .NET, BizTalk 2006, MOSS 2007, SQL Server 2005.
Global Music Company Leads Industry Transformation with Scalable Infrastructure.
Articles
MSDN Magazine
Authenticate Users Across Organizations Using ADFS.
Expanding trust further with ADFS, and configuring it for the client and server.
Articles
MSDN Magazine
Extend Windows PowerShell With Custom Commands.
Overriding default cmdlet behaviour and using custom cmdlets.
Articles
KB Article
XmlSerializer generates an unexpected result in .NET Framework v2.0.
Fix for serialising the numeration attribute with XmlSerializer class.
Downloads
Download
Windows Server 2008 Release Candidate 1.
Find which RC1 edition is the best for you.
Downloads
Download
Power Toys for .NET Compact Framework 3.5.
Tools include NETCF CLR Profiler, RPM, Log Viewer plus more.
Articles
KB Article
Fix for: "Option Strict On disallows implicit conversions".
Updated WPF template for Visual Basic 2008.



Register Now to Avoid Disappointment


Community event
Community event
Community event
Community event
17 December, Online: MSDN Live Chat on the Web.
Community event
Community event
Community event
Community event
10 January, London: MSDN - Sharepoint for Developers.


Feature Article


Silverlight Vista Gadgets

Here I am going to outline how you can use Silverlight to write Windows Vista Sidebar gadgets. Knowledge of Silverlight development is already assumed, but if you need to bring yourself up to speed, start with the Silverlight quickstarts. There are many articles on Sidebar Gadget development, for example read this one on TechNet.

To get started on your Windows Vista machine, you will need to have installed Visual Studio 2005 or 2008, the Silverlight runtime, and the Silverlight Tools for Visual Studio. For the Silverlight Tools and runtime, visit the Silverlight homepage.

Once you have the above installed, open up Visual Studio and create a new Silverlight Project. This article targets Silverlight 1.1 (recently renamed to 2.0) Alpha, but you can use similar techniques for Silverlight 1.0. Once you have your skeleton project open, you will need to add a new XML item called gadget.xml – this file is what will contain your gadget’s manifest file so that the Sidebar can pick up various settings. This figure from the MSDN magazine shows what it should look like.

To begin with, open up your Page.xaml file and add a TextBlock element with some dummy text in its Text attribute. To assist in your debugging, you may also want to set the Canvas Background attribute to ‘Gray’ so that you can see how much space the actual Silverlight control takes up. As the control will be hosted in the Sidebar, the size is a consideration. You will need to set the Width and Height in three places; the first in the Page.xaml Canvas element, the second in the html Style attribute, and the third is to set these properties on the html ‘body’ element. Sensible starting values would be 120 for the Width and 240 for the Height. Now you will need to deploy your gadget to the appropriate folder: C:\Users\<username>\AppData\Local\Microsoft\Windows Sidebar\Gadgets. Remember, you must name your folder in the format <appname>.gadget. You will just need to copy in your supporting Silverlight files and ClientBin folder and you are ready to add your gadget to the Sidebar.

Right-click on the Sidebar, and select the ‘Add Gadgets...’ option. If you have deployed this correctly, you should see your gadget in the list. Right-click the gadget, and select ‘Add’ to put it on the Sidebar.

In bringing together these technologies there are a few gotchas. First, you must set the isWindowless property to ‘true’ in your html code-behind file. This allows better integration into the Sidebar - if you don’t do this, you won’t be able to close the gadget, or open up the settings page if you have created one. Second, to call the managed Silverlight code from your Gadget API JavaScript Event Handler, you can use the techniques described in this article. If you want to call JavaScript from your Silverlight 1.1 code, you are going to have to use the more involved technique described on this blog post.

Happy coding!

Chris Barker

Application Development Consultant (ADC) 

On the Horizon


Community event
10 - 13 Februaury, California: Developer Office Conference 2008.
Community event
05 - 07 March, Las Vegas: MIX 08 (Register by 15 January for $1095).
Community event
10 - 14 March, London: DevWeek 2008 (Register by 14 December for £1495 + VAT).
Community event
10 - 14 March, London: QCon London 2008 (Register by 15 January for £1664).


Contact Microsoft


Send your feedback and comments to ukmsdn@microsoft.com.
Find out more about the MSDN resources that are available to you.

Find out more about the Microsoft Contact Centre or call on 0870 60 10 100 (0800-1800 Monday to Friday)
Find out more about your MSDN Subscription contact points or call 0800 0517 215

MSDNMSDN EventsMSDN ScreencastsEvaluation centreDeveloper CentresMSDN

To cancel your subscription to this newsletter, reply to this message with the word UNSUBSCRIBE in the Subject line. You can also unsubscribe at the Microsoft Profile Centre You can manage all your Microsoft.com communication preferences at this site.

Legal Information 

This newsletter was sent by Microsoft Ltd, Microsoft Campus, Thames Valley Park, Reading RG6 1WG.
Sign up for other newsletters | Contact Us | Unsubscribe | Update your profile | Legal information
© 2007 Microsoft Corporation  Terms of Use | Trademarks | Privacy Statement
Microsoft