- ホーム
- > 洋書
- > 英文書
- > Computer / Operating Systems
Full Description
A one-stop resource for each aspect of designing and developing Sidebar gadgets, perfect for anyone who wants to create killer gadgets Explores one of the super cool features new to Windows Vista -- the Sidebar It is a one-stop resource for each aspect of designing and developing Sidebar gadgets, perfect for anyone who wants to create killer gadgets Includes complete design instructions for four never-before-seen gadgetsWindows Vista Sidebar is a panel located on the desktop of a PC where gadgets can be placed for easy access and reference. These gadgets are small, single-purpose applications, such as clocks, calendars, games, RSS notifiers, search tools, stock tickers, etc, that reside on the Windows desktop and on the Windows Sidebar. The book will be a tutorial to design and develop a gadget. It will provide ready-to-use samples using .NET, XML, CSS and AJAX. After reading the book, a web developer/designer will be confident enough to start developing gadgets for Windows Vista Sidebar. The beginner portion of the book shows an overview of the subject with the design pattern, the architecture and implementation details. The later sections will have solid examples for instant results. In short, the book will tell how to do everything with Sidebar Gadgets using solid, unique examples. Brief outline: " Brief background on Gadgets " Define architecture, design consideration and implementation to give a clear view to the developer " Step by step, create a useful Gadget sample "My Blogs" " Elaborate the architecture design constraint and implementation details for the sample " Detail the standard practices " Recheck the gadget created for standard practices " Improvise and Improve with compare and contrast " Add advanced samples with .NET, AJAX and XHTML.
Contents
Introduction 1What's in the Book 1Section 1: The Foundation 1Section 2: Developing a Gadget 2Section 3: Advanced Samples 2Special Features and Notations 2Supporting Website 3Part I The Foundation1 Innovate with Windows Vista Sidebar Gadgets 7Introducing Gadgets and the Vista Sidebar 7Windows Sidebar 8Technology Behind Gadgets 8Brief History of Gadgets 9Innovate with Gadgets 10Types of Gadgets 12Information Gadgets 12Application Gadgets 13Utility Gadgets 14Fun Gadgets 14Gadgets in Depth 15What Gadgets Are Not 15Different Views-The Three Hats of the Gadget 16Opacity Level and Always on Top Property 17Using Flyout for More Information 18Customization 18Multiple Platforms for Gadgets 19Meeting Points for Different Gadgets 20The Development Platform 21Gadget Ecosystem 21Other Desktop Gadget/Widget Platforms 22Gadget Comparison Chart 262 The Architecture 29Gadgets Overview 29The Manifest File gadget.xml 31User Interface and Presentation 32Cascading Style Sheets 32Core Functionality of the Gadget: JavaScript 34Resources, PNG, and Other Files 34Technology Behind Gadget Development 35MSHTML Component, the Core of the Gadget 36Standard Web Technologies 36Sidebar Gadget as an HTML Application 37Gadget Object Model 38ActiveX Technology 38Gadget Object Model 39User Interaction and Sidebar Events 40APIs to Access the File System 42Core Features to Interact with the System 44Communication and Other APIs 44Sidebar Gadgets: The Road Ahead 463 An Approach to Design 49Design Considerations 49Putting Information First 50Constructing the Right User Interface 53Usage Patterns 57Gadget Behavior 60Challenges for the User Interface 63Standard Dimensions 64Gadget Page When Docked 64Undocked Gadget 65Settings Page 65Flyout Page 65Other Interface Guidelines 66Visual Themes 67Title 67Icon 67Drag Image 68Background Image 68Controls 69Text and Style 70Transparent Images in the Gadget 71Alpha Transparency 71Portable Network Graphics File 71GIF File Limitations 71About Accessibility 72Keyboard Access 72General HTML accessibility 73Theme Colors and Contrast 734 Selling Your Gadget 75Gadget Revenue Model 75Pull Model 76Push Model 78How Gadgets Give You Business 80The Ad Gadget. 81Gadget as a Side Product 82Utility Gadget 84Free Information Gadget 85Supporting Your Gadget 87Part II Developing a Gadget5 Creating a Simple Gadget with RSS/Atom Feed 91Feed Gadgets 91Brief Background on Feeds 91About the MyBlog Gadget 92Basic Framework of the MyBlog Gadget 94Required Files 94Directory Structure 95How the MyBlog Gadget Works 97The Manifest File 98Gadget Settings 100Parts of the MyBlog Gadget 102The Data 103Core Functionality of the Gadget 104Presenting with CSS and DOM 107Putting It All Together 1126 Design Patterns and Standard Practices 115Design Patterns 115Maintainable 116Customizable 116Extensible 117Elements of Design Patterns 117Standard Layout for Files and Folders 118Reusable Functionality 120Display and Presentation 127Common Assumptions 130The Gadget Will Always Work 130Internet Connection 131Regular Feed Updates 132Caching of the Feed Data 133Memory and Session Management 133Adding Accessibility 134Putting the Focus on the Gadget when It Is Loaded 135Adding Tab Controls 135The Enter Key Acting Like a Mouse Click 135Using the onfocus and onfocusout Events for Mouse Hover Effect 137Making the Gadget's Flyout and Settings Page Keyboard Accessible 1377 The MyBlog Gadget Revisited 139Recapping the MyBlog Gadget 139Taking the MyBlog Gadget to the Next Level 141Adding Multiple Feeds 142Managing Multiple Pages in the Gadget Window 150Unobtrusive Traversing 152Docked, Undocked, and Mini Me Version 154Settings Page Configuration for the Mini Me Version 155Gadget Window Configuration 1568 Debugging and Deploying a Gadget 159Debugging a Gadget 160Debugging Using WScript and VBScript 161Debugging Using JavaScript and DOM 166Debugging Tools 168Deploying a Gadget 170Gadget Installation Target 171Gadget Installation Process 172Gadget Packaging 172Deployment Using a Cabinet File 174CAB File Approach 175A Windows Installer (.msi File) or setup.exe 180Comparison of Deployment Methodologies 180Part III Advanced Samples9 Site Statistics Gadget with Ajax-An Information Gadget 183The Goal 183Background-www.sitemeter.com 184Site Summary Page 185Features and Technology 186Application Programming Interface 187Loading a Portion of a Web Page with Ajax and DOM 190Design Considerations 195Theme and Images of the Gadget 195Layout of the Gadget 196Usability of the Gadget 197Developing the Gadget 198Integrating the Existing Framework 199Retrieving Data for Site Summary Using API and Online Web Page 200Graphs and Pie Charts Based on the API 20410 Most Recent Used .NET Projects-An Application Gadget 211Recent .NET Project Gadget 211Target of the Gadget. 212Background 212Features and Technology 213ActiveX COM Technology 214Windows Power Shell and Windows Management Instrumentation 216Design Considerations 219Theme of the Gadget 219Layout of the Gadget 220Usability of the Gadget 221Developing the Gadget 222Integrating the Existing Framework 222Listing MRU Items from the Registry 225Reading the Registry 23411 Radio Gadget and YouTube Video Gadget-Fun Gadgets 237Media Gadgets 237The Radio Gadget 238Background-Internet Radio 238Features and Technology 239Design Considerations 240Developing the Gadget. 243The YouTube Video Gadget 249Background-YouTube Video Feeds 249Features and Technology 250Design Considerations 251Developing the Gadget 25512 Silverlight World Clock-Utility Gadget 261The Silverlight Gadget 261Background-Microsoft Silverlight 262Features and Technology 264JavaScript for Creating the Silverlight Object 265Microsoft Silverlight 266Extensible Application Markup Language 267Design Considerations 268Theme and Images 268Layout of the Gadget 269Usability of the Gadget 270Developing the Gadget 271Integrating the Existing Framework 271The XAML File 272Silverlight Clock Logic 275Creating a Sidebar Gadget Using Microsoft Popfly 280Website Comparison Gadget 280Creating a Mashup Using Microsoft Popfly 281Porting a Mashup to Vista Sidebar as a Gadget 283Where to Go from Here 284Part IV AppendixesA Tips and Tricks 289Automatic Update and User Tracking 289Checking for a New Version of the Gadget 290Tracking Your Users 294Reading XML, XHTML, RSS/Atom, Html, Text and JSON Data 295The XMLHTTPRequest object 295Microsoft XML DOM 297Windows RSS Platform & Microsoft Feed Manager 298Globalization and Localization 299Localized Gadget Example 300Locales with Country Codes 302Graphic Design 302Gadget Protocols for Image and Text 302Sample Gadget g:Demo 304Creating a Transparent PNG File in Photoshop 307Creating Outer Edges/Shadow Effects in Photoshop 309Security and Other Resources 311Protecting Your Code 312Gadgets in an Enterprise (Accessing SQL Server) 313Resources and References 314B Extras 315Reusable Framework for Creating Gadgets 315Sample Gadgets Based on the Framework 317The Widget-Box Gadget 317The Comic-Strip Gadget 319The Trick-of-Mind Gadget 319Share Your Gadgets 320Index 321



