Get your applications ready for Windows 7 – walkthrough (Part II) - ISV blog-voer
Zoeken binnen blogs.microsoft.nl

ISV blog-voer

Get your applications ready for Windows 7 – walkthrough (Part II)

Apr 29 2009, 11:06 AM

After Part I you can now start using Light up Windows 7 Features

Lighting up your application in Windows 7 gives the users a better experience and shows you are among the development leaders. Many of the features are relatively easy to implement too. Lighting up Windows 7 is about adding to your application, not about rewriting or major revisions. Some of the features can be implemented in just a few lines of code.

So, you'll want to decide what features you want to light up. What features really add value for your users? You can get a complete list of features for your application at Windows 7 Developer Guide.

But I wanted to highlight some of the features and provide some links on where you can get started.

Fast Track to Get Started

Before I dive into the main features for line of business applications, you'll want to get:

  • Latest release of Windows 7. I'll be sure to post links on where you can get Windows 7 released candidate as soon as it is publicly available.
  • Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1: BETA. Once the release candidate is out, the SDK will be revised and improved within a few weeks. Check the Windows Team Blog or this blog for announcements of the availability of the release candidate software developer kit. But you can get the SDK now to get an idea of what it takes to implement the features you're considering.
  • If you are developing on managed code using C# or Visual Basic, get the Windows API Code Pack for the .NET Library. You'll find sample code there to help you get started for Visual Basic, C#, and C++.
  • Resources for help. That includes Windows 7 developer code samples, forums, and events. More details a the end of this blog posting.

So you have the tools. Here's a list of what features you can light up: Windows 7 Touch, Taskbar, Libraries, Sensor and Location, PowerShell, and much more.

Windows 7 Touch

Touch is probably the biggest crowd pleaser for demos and functionality. It offers some real innovation for your application. And the feature will get you thinking about how your application can be more exciting to your users. To take advantage of Touch, you are going to need a PC that supports multiple touch points.

The current API is native (unmanaged code) and in the near future Windows Presentation Foundation (WPF) 4 will include full support of Multi-Touch in Windows 7.

You can get started today seeing more about the possibilities. The Windows 7 SDK includes a few demos for reference, including detailed samples showcasing Multi-Touch gestures support, manipulation and inertia for both WinForms and WPF.

For an overview, see Enabling Multi-Touch in the Windows 7 Beta. For code samples and hands on labs, see Windows Touch: Developer Resources. You can get a good idea of how powerful the features are for Touch in a video Windows Media Center on Windows 7 with Touch.

Windows 7 Taskbar

You'll notice the Taskbar the first time you open up Windows 7. The Windows 7 engineering team describes the evolution behind the taskbar.

There are several features in the Taskbar for you to light up your application.

  • Jump Lists. A customized jump list lets your user go to the information they need most. You many not want to display the most recent documents saved. You may want to show the latest customers or the highest ranked items when the user clicks on your taskbar icon. You can manipulate custom destinations, user tasks, the Recent and Frequent lists, and items removed by the user.

Some additional customizations are:

  • You customized window thumbnail preview and live preview (peek), including the facilities to receive a notification when a preview bitmap is requested by the Desktop Window Manager (DWM), and automatically grab the preview bitmap of a window.
  • You can create thumbnail toolbar buttons and receive notifications when they are clicked.
  • You can control custom window preview bitmaps, setting the Taskbar overlay icon and progress bar.

For more information, see Windows 7 Taskbar .NET Sample Library – an Overview. You'll find an overview, links to MSDN, and links to videos that show you how to implement the features.

Also see Windows 7 Taskbar Developer Resources on MSDN for code samples, videos, and conference presentations.

Windows 7 Libraries

Libraries are user-defined collections of content. Libraries extend the idea of known folders to make it easy for users to save files in a consistent way. Content can be stored all over the PC and network. Libraries gives users control over their “Documents Library” folder structure. Users define which folders to include in the Documents Library.

As a developer, you can access a user's Library and consume its contents, removing the need maintain your own set of data storage for your application.

For example, your application might have its document type, such as a patient record file, where adding a custom library might assist your users in grouping together all patient records separate from other document types like photos or documents. You might want to save the records to a designated disk in the organization they can be centrally managed. And you'd like to make that storage location obvious to the user.

To get started, use the common save dialog box for your applications. This will automatically display libraries to your users. To use the new Common Dialog, you'll need to use the newer Vista or Windows 7 API in the System.Windows.Forms.FileDialog namespace. It's like a half dozen line of code described in Light Up with Windows 7 Libraries.

You can add other features as needed. You can:

  • Manipulate and control the libraries in Windows 7 including create a new library or delete an existing one
  • Add or remove physical locations to a Library
  • Set an icon for each library
  • Enumerate the contents of a given library's physical location (the actual folders) to track down and map all the items in that library

You can also enable your applications to select Libraries and consume Libraries contents. And your applications can stay in sync with Library contents and directly manipulate Libraries. You can have full control over libraries, including creating new libraries.

For more information, see this series of posts on the Windows Team Blog for developers.

For a video to see Windows 7 Libraries in action, see Windows 7: Find and Organize

PowerShell 2.0

You can look at PowerShell in a several ways as an ISV.

Using PowerShell in your development efforts and to empower your users to customize the functionality and leverage your application in new ways. For example, PowerShell can be used to automate your application and configuration.

You won't be alone; ITPros are already using more than a hundred PowerShell scripts available in The Script Center to managing Exchange Server 2007 and IIS using Windows PowerShell cmdlets for managing IIS 7.0

Give PowerShell scripters access the functionality of your application by creating custom CmdLets. You can also build PowerShell scripts to help automate testing your application.

If you expose your heirarchical data that the user will need to access, you might need to write your own Windows PowerShell provider, as described in How to Create a Windows PowerShell Provider.

Fire cmdlets from user interfaces to allow users to customize actions during installation and configuration.

Client Applications
Additional Windows 7 features

Some other parts of Windows 7 that you'll want to consider:

  • Power Management: If you build Windows Services as part of your application, those background tasks can really eat up power. To help conserve power and make batteries last longer, you can adjust your application to use power more effectively.
  • Windows 7 Sensor and Location: Provides a standard way to integrate sensor and location devices with Windows 7, and provides a standard programming model for applications to take advantage of these devices. You'll want to use the sensor and location APIs for your application to take advantage of the current conditions. If your application takes advantage of GPS, this API is right for you.
  • Direct 2D, Direct 3D, DirectX: Deliver high-fidelity graphics and media.
  • Scenic Ribbon: Put ribbon UI into your applications. The ribbon is extensible and adds to a better user experience. 
  • Enhanced installer engine: The enhanced MSI engine makes software deployment easier.
  • Multicore support: Enhances application and device performance.

 

Mark

Opgeslagen onder: ,

Commentaar:

ISV blog-voer zei:

The release candidate is available on MSDN with public availability coming on May 5. So you'll be

# May 1, 2009 7:56 AM

ISV blog-voer zei:

The toolkit needed for you to test your applications for Windows 7 and Windows Server 2008 R2 has been

# May 14, 2009 12:26 PM

ISV blog-voer zei:

MSDEV.com produced a set of videos giving developers a look into Windows 7 coding. This series introduces

# May 21, 2009 10:29 AM
Wat denkt u?

(Verplicht) 

(Verplicht) 

(Optioneel)

(Verplicht) 
CaptchaCube Vraag:


Antwoord: