You are previewing Introducing Windows® 7 for Developers.
O'Reilly logo
Introducing Windows® 7 for Developers

Book Description

Your first look at the new features and development capabilities in the Windows 7 operating system.

Table of Contents

  1. Dedication
  2. Special Upgrade Offer
  3. Foreword
  4. Introduction
    1. Who This Book Is For
    2. What This Book Is About
    3. Prerelease Software
    4. Companion Content
    5. Hardware and Software Requirements
    6. Support for This Book
      1. We Want to Hear from You
      2. Acknowledgments
  5. 1. Welcome to Windows 7
    1. What Has Changed Since Windows Vista?
    2. Seven Ways to Shine on Windows 7
      1. Taskbar
      2. Libraries
      3. Touch, Multitouch, and Gestures
      4. Sensor and Location
      5. Ribbon
      6. Enhanced Graphics Platform
        1. Before Windows 7
        2. New in Windows 7
      7. Improved Fundamentals
    3. Summary
  6. 2. Integrate with the Windows 7 Taskbar: Basic Features
    1. Design Goals of the Windows 7 Taskbar
    2. A Feature Tour of the Windows 7 Taskbar
      1. Jump Lists
      2. Taskbar Overlay Icons and Progress Bars
      3. Thumbnail Toolbars
      4. Live Window Thumbnails
      5. Backward Compatibility
    3. Integrating with the Windows 7 Taskbar
      1. Application ID
      2. Taskbar Progress Bars and Overlay Icons
    4. Summary
  7. 3. Integrate with the Windows 7 Taskbar: Advanced Features
    1. Jump Lists
      1. Anatomy of a Jump List
      2. Recent and Frequent Destinations
        1. Associating Your Application with a File Type
      3. Custom Destinations
        1. Clearing the Jump List
      4. User Tasks
    2. Thumbnail Toolbars
    3. Customizing Thumbnails
      1. Thumbnail Clipping
      2. Custom Thumbnails
      3. Custom Live Previews
    4. Window Switchers
    5. Summary
  8. 4. Organize My Data: Libraries in Windows 7
    1. Windows Explorer
      1. Changes Made to Windows Explorer in Windows 7
    2. Welcome to Libraries
      1. Libraries under the Hood
      2. Working with Libraries
        1. Make Your Application Library Aware
        2. Using the Right Common File Dialog to Work with Libraries
        3. Working with the Shell Namespace
        4. Consuming Library Content
        5. Using the New Libraries API
        6. Using the Managed Code API
        7. Deleting a Library
        8. Staying in Sync with the User Data
    3. Summary
  9. 5. Touch Me Now: An Introduction to Multitouch Programming
    1. Multitouch in Windows 7
    2. Windows 7 Multitouch Programming Models
      1. The Good Model: Supporting Legacy Applications
      2. The Better Model: Enhancing the Touch Experience
      3. The Best Model: Experience Optimized for Multitouch
    3. How Multitouch Works in Windows 7
      1. Architecture Overview: Messages Data Flow
      2. Supporting Legacy Applications
    4. Working with Gestures
      1. Handling the WM_GESTURE Message
      2. Use the Pan Gesture to Move an Object
      3. Use the Zoom Gesture to Scale an Object
      4. Use the Rotate Gesture to Turn an Object
      5. Use a Two-Finger Tap to Mimic a Mouse Click
      6. Use the Press-and-Tap Gesture to Mimic a Mouse Right-Click
      7. Configuring Windows 7 Gestures
        1. Advance Gesture Configuration
    5. Summary
  10. 6. Touch Me Now: Advanced Multitouch Programming
    1. Working with Raw Touch Messages
      1. Setting Up Windows for Touch
      2. Unpacking WM_TOUCH Messages
        1. Tracking Touch-Point IDs
    2. Using the Manipulation and Inertia Engines
      1. Multitouch Architecture: The Complete Picture, Part 1
      2. Using Manipulation
        1. Setting Up Manipulation
        2. Working with Manipulation
      3. Using Inertia
      4. Multitouch Architecture: The Complete Picture, Part 2
        1. Setting Up Inertia
        2. Working with Inertia
    3. Summary
  11. 7. Building Multitouch Applications in Managed Code
    1. Building Your First Touch-Sensitive Application
    2. Using Windows 7 Touch to Move an Object
    3. Using Windows 7 Touch to Scale an Object
    4. Using Windows 7 Touch to Rotate an Object
    5. Using Inertia with Gestures
    6. Extending for Multiple Objects
    7. Building a Gesture-Enabled Picture Control
    8. Using the Gesture-Enabled Picture Control
    9. Classes to Support Touch and Gestures
      1. UIElement Additions
    10. Summary
  12. 8. Using Windows 7 Touch with Silverlight
    1. Introducing Silverlight
    2. Creating Your First Silverlight Application
      1. Building Out-of-Browser Applications in Silverlight
    3. Using the Silverlight InkPresenter Control
      1. An Example of Ink Annotation in Silverlight
      2. Silverlight Ink Classes for JavaScript Programmers
        1. The StrokeCollection Type
          1. StrokeCollection Properties
          2. StrokeCollection Methods
        2. The Stroke Type
          1. Stroke Properties
          2. Stroke Methods
        3. The StylusPointCollection Type
          1. StylusPointCollection Properties
          2. StylusPointCollection Methods
        4. The StylusPoint Type
          1. StylusPoint Properties
        5. Mouse Event Arguments and Ink
          1. MouseEventArgs Properties
          2. MouseEventArgs Methods
      3. Programming for Ink in Silverlight
    4. Using the Touch APIs in Silverlight
      1. Expanding the Application for Multitouch
    5. Summary
  13. 9. Introduction to the Sensor and Location Platform
    1. Why Sensors?
      1. A Word on Security
      2. Architecture of the Sensor and Location Platform
    2. What Is a Sensor?
    3. Working with Sensors
      1. Integrating Sensors into Your Application
        1. Discovering Sensors
        2. Discovering Sensors Using Managed Code
      2. Requesting Sensor Permissions
        1. Requesting Sensor Permissions Using Managed Code
      3. Interacting with Sensors
        1. Getting and Setting Sensor Properties
        2. Reading Sensor Data Synchronously
        3. Reading Sensor Data Asynchronously and Handling Sensor Events
        4. Setting Sensor Event Sinking
      4. Reading Sensor Data Using Managed Code
        1. Handling Sensor Events Using Managed Code
      5. Ambient Light Sensor Application
    4. Summary
  14. 10. Tell Me Where I Am: Location-Aware Applications
    1. Why Location Awareness Is So Important
    2. Location Platform Architecture
      1. Location Devices Are Regular Windows 7 Sensors
      2. Location Information Is Sensitive Information
    3. Working with the Location API
      1. Understanding How the Location API Works
        1. Working with the ILocation Inferface
        2. Obtaining a Location Interface
      2. Requesting Location Permissions
        1. Default Location
      3. Interacting with the Location Interface
        1. Location Reports Type
        2. Understanding the Location Report Status
        3. Reading Location Reports
        4. Registering for Location Events
        5. Handling Location Events
    4. Putting It All Together
    5. Writing a Location-Aware Application Using .NET
      1. Reading Location Reports and Handling Location Events
      2. Using the Enhanced Default Location Provider Tool for Testing
    6. Summary
  15. 11. Develop with the Windows Ribbon, Part 1
    1. History
    2. Using the Ribbon
    3. Programming with the Windows Ribbon Framework
      1. Ribbon Markup
        1. The Application.Commands Section
        2. Ribbon Image Resource Format
        3. High DPI
        4. Localized the Ribbon
        5. Presenting Commands
        6. Building the Ribbon
        7. Setting the Group’s Control Layout
        8. Controlling Scaling Behavior
        9. Defining Custom Size Definition Templates
    4. Summary
  16. 12. Develop with the Windows Ribbon, Part 2
    1. Programming the Ribbon
      1. The Minimal Ribbon Revisited
      2. Initialization Phase
        1. Providing the Ribbon Resource
      3. Handling Ribbon Callbacks
        1. Avoid the Switch Statement
      4. The Property System
      5. Setting Properties Directly or Indirectly
      6. Controlling Controls
        1. Manipulating the CheckBox and ToggleButtons Boolean Values
        2. Manipulating the Spinner Control
        3. Changing Image
        4. Managing Galleries
        5. Working with Live Preview
        6. Using the Drop-Down Color Picker
        7. Using the FontControl
      7. Setting Application Mode, and Showing Contextual Tabs and Pop-Ups
        1. Manipulating the Quick Access Toolbar from Code
        2. Manipulating Most Recently Used Files from Code
        3. Playing with Ribbon Colors
        4. Recommended Ribbon Color Setting
        5. Persisting the Ribbon State
    2. Summary
  17. 13. Rediscover the Fundamentals: It’s All About Performance
    1. Instrumentation and Diagnostics
      1. Performance Counters
      2. Windows Management Instrumentation
      3. Event Tracing for Windows
      4. Windows Performance Toolkit
      5. Troubleshooting Platform
    2. Performance and Efficiency
      1. Background Services and Trigger Start Services
      2. Power Management
    3. Summary
  18. About the Authors
  19. Special Upgrade Offer
  20. Copyright