Destination .NET! Platform Tools, Technologies & Resources
1 3 5 7 9
2 4 6 8 10
From VB4, C++ and Java to working on .Net Since Beta, 1.0.
Improving partner satisfaction and accelerating Microsoft platform adoption for managed ISVs.
Is your application compatible with Windows Vista? Make sure today by taking our self-test. Just follow the five steps of the Works with Windows Vista program so that you and your customers can be confident in your solution’s compatibility. Read More >>
What product/topic are you most interested in?
(Choose your top answer.)
Windows Vista
Windows Server 2008
2007 Microsoft Office system
SQL Server 2008
ASP.NET
Visual Studio 2008
Windows Mobile
Software as a Service
A little bit of everything
Just browsing, thanks

View Results
Whether you love the site or hate it, we want to know. Tell us what topics to cover, help us improve things, or just sound off on something we could've done better. Send your feedback directly to the editor by email.
 Print Print
Average Rating: 5/5 | Rate this item | 1 user has rated this item.
Building the DevX Destination.NET Windows® Sidebar Gadget
The new Windows® Sidebar gives users a cool way to run mini-apps on the desktop itself. In building the DevX Destination.NET gadget, Justin Whitney discovered some of the ins and outs of building a gadget. Here, he shares the process from start to finish and takes you on a guided tour through some of the trickier bits. 

More Resources
  • Watch the Video Walkthrough
  • Download the Gadget Files
  • Read the Sidebar: Developing a Windows Sidebar Gadget in Windows XP
  • Windows Vista Service Pack 1 Developer Training
  • Microsoft Visual Studio 2008 Web Seminar Series for ISV Developers
  • ISV Web Seminar: Windows Vista Certification Workshop Series
  • While Mac OSX users have had Widgets, we on the Windows® platform side have had to settle for Google Desktop. But with Windows Vista®, Windows users now have Gadgets of their own. Vista Sidebar Gadgets, as they're formally known, sit on a special section of your desktop called the Sidebar and give you access to mini-apps that can take the form of self-contained games or utilities. Most Gadgets to date are stand alone, but Gadgets can also connect to libraries deep under the hood.

    In its simplest form, a Windows Gadget looks like an HTML file. Crack open some of the gadgets that come with Windows Vista and you'll see three basic file types familiar to any Web developer: HTML, CSS, and JavaScript. While it's possible to make more complex Gadgets, when I began to design a Gadget RSS reader for DevX Destination.NET, I realized a basic Ajax-flavored Web app would provide all the functionality the Gadget really needed.

    Actually building the thing, however, was another story. In this walkthrough, I plan to highlight basic essentials most other tutorials seem to assume you already know, as well as describe some of the little gotchas I ran into. Along the way, I'll drop in a few lessons learned to make your Gadget development a bit easier.

    Sidebar Gadget: Architectural Overview
    As a developer, before I can understand a new technology I need to know exactly what's going on. What do the files look like? Where do they go? What does the system expect to see and where can I start taking liberties? If you're like me, Windows Gadgets will make more sense once you understand the architecture.

    If you're running Windows Vista, you've probably enabled your Sidebar and taken a look at some of the gadgets that come with the OS. To look at their source, find where the gadget folder is located on your install. It's usually something like C:\Program Files\Windows Sidebar\Gadgets. In this folder, you'll see several subfolders, each with a ".Gadget" extension. When you download a gadget, it's usually packaged as a compressed folder with a .gadget extension. Double-clicking such a file prompts Windows Vista to install the gadget to the Gadget Gallery that opens when you click the "+" in the Sidebar. However, putting an uncompressed folder in the Program Files directory and giving it a ".Gadget" extension also adds the gadget to the gallery, provided it includes certain files.

    Editor's Note: : If you've never seen Windows Vista or its Windows Sidebar, be sure to watch the video walkthrough of Justin's Sidebar Gadget here

    Page 1 of 7
      Next Page: Architectural Overview continued
    Page 1: Architectural OverviewPage 5: JavaScript Walkthrough #1: Gadget
    Page 2: Architectural Overview continuedPage 6: JavaScript Walkthrough #2: Setting
    Page 3: Architecting the RSS ReaderPage 7: Deployment, Wrap-up, Lessons Learned
    Page 4: Special Considerations for CSS 
    Submit article to:
    Extending your solution to run on Microsoft technology is easier than ever. Through NXT, you can reach more customers, increase revenues and slash development time and costs, accelerating both your time to market and profitability. Get the details on NTX. >>
    Sign up for your free e-mail newsletters today!
    DevX Windows Developer Update

    More Newsletters
    .NET Building Blocks: Custom User Control Fundamentals
    Quickly Copy Data Rows from DataReader to a DataTable
    Introduction to the WPF Command Framework
    Taming Trees: Building Branching Structures
    Implement Drag and Drop in Your Windows Forms Applications



    JupiterOnlineMedia

    internet.com earthweb.com Devx.com mediabistro.com Graphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info

    Copyright 2008 Jupitermedia Corporation All Rights Reserved.
    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers