Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

26
Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd http://www.danielmoth.com/Blog

Transcript of Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Page 1: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Windows VistaPresentation Advances

Daniel MothDeveloper & Platform Group, Microsoft Ltdhttp://www.danielmoth.com/Blog

Page 2: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Products Used

• Windows Vista (Vista)

• Visual Studio 2005 (VS)– C#

Page 3: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Overview

Page 4: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

AGENDA

• Glass• Preview Handler• comctl32 v6 • TaskDialog, CommonFileDialog• Search• Gadgets

Page 5: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Glass

Page 6: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Glass

• Helps user focus on the “important” area• Free, in non-client areas• In client areas

– Extend it inwards from any side– Paint it black– Arbitrary regions– WPF even easier

• Don’t abuse it!

Page 7: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Managed Preview Handler Framework

Page 8: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Preview Handlers

• Outlook– Message Preview– Attachment Preview

• Vista Shell Folder– Preview Pane

Page 9: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

TreeView auto scroll, Shield, cue banner,

CommandLink

Page 10: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Common Controls v6

• The basis of any Windows GUI

• System.Windows.Forms– Same PMEs

• ...for now!

• commctrl.h

Page 11: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

VistaBridge

Page 12: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Vista File DialogsQuick Search box

extensibleFavorite Links

file properties

navigation buttons

context-based tasks

“friendly” address bar enhanced column headers: sort, group and filter

Live Icons

Preview Pane

custom controls

Page 13: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Task Dialog

Page 14: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Windows Vista Desktop Windows Vista Desktop SearchSearch

• Search is fully integrated in Windows VistaSearch is fully integrated in Windows Vista– Start Menu, Control Panel, Explorer WindowsStart Menu, Control Panel, Explorer Windows

• Single, built-in, client indexing platform and Single, built-in, client indexing platform and a new Property Systema new Property System– Used by Explorer, Outlook 2007 and Used by Explorer, Outlook 2007 and

OneNote 2007OneNote 2007– Can be used by third party applicationsCan be used by third party applications

• OLE DB Provider for Windows SearchOLE DB Provider for Windows Search• ISearchQueryHelperISearchQueryHelper

Page 15: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Windows Desktop SearchWindows Desktop SearchOLE DB Provider for Windows SearchOLE DB Provider for Windows Search

• The provider can be used from The provider can be used from ADO.NETADO.NET– System.Data.OleDb classesSystem.Data.OleDb classes

• Connection string formatConnection string format• Query syntaxQuery syntax

Page 16: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Search

Page 17: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Search Providers

File System

MAPIStore

Other Stores

Property System

3rd PartySchemas

SystemSchemas

Property Handlers

3rd PartyPropertyHandlers

ImagePropertyHandlers

MediaPropertyHandlers

Indexer

InvertedIndex&PropertyCache

Query System

3rd Party Applications

Protocol HandlersFileProtocolHandler

MAPIProtocolHandler

3rd PartyProtocolHandler

Page 18: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Gadgets for Windows Sidebar• “Gadget”

– Lightweight and task-specific applet• Sidebar is a container for gadgets

and more– Manager, Picker, Installer, Host

• Developer model– HTML + Script

• Installed to the local machine– “c:\users\ … \gadgets”– Packaged (Folder, Zip, CAB)

• Manifest, HTML file, HTML settings

Page 19: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Sidebar gadgets

http://www.microsoft.com/uk/msdn/events/nuggets.aspx

Page 20: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

SideShow

Page 21: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Sample ScenariosSample Scenarios

• Cached/Offline scenarios: Calendar, driving Cached/Offline scenarios: Calendar, driving directions, e-mail, weather, trafficdirections, e-mail, weather, traffic– Make use of data that is cached on a deviceMake use of data that is cached on a device– User can interact when the PC is on or offUser can interact when the PC is on or off

• Live/Online scenarios: Media control, Live/Online scenarios: Media control, presentation control, instant messaging, presentation control, instant messaging, notificationsnotifications– Data and events sent during user interactionData and events sent during user interaction– User can interact when the PC is onUser can interact when the PC is on

Page 22: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Software ArchitectureSoftware Architecture

Windows SideShow APIWindows SideShow API

GadgetGadget

Windows SideShow DriverWindows SideShow Driver

Display DeviceDisplay Device

Inter-process communicationInter-process communication

Transport ChannelTransport Channel

Data SourcesData Sources

File System (e.g. File System (e.g. pictures)pictures)

Application (e.g. Application (e.g. contacts)contacts)

Web / Service (e.g. news)Web / Service (e.g. news)SCF

Page 23: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

SideShow gadgets

Page 24: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Summary

• Glass• Preview Handler• comctl32 v6 • TaskDialog, CommonFileDialog• Search• Sidebar gadgets• SideShow gadgets

Page 25: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

Resources

• My bloghttp://www.danielmoth.com/Blog/Labels/

Vista.html

• Other launch resourceshttp://www.microsoft.com/uk/launch2007/dev/

useful.mspx

Page 26: Windows Vista Presentation Advances Daniel Moth Developer & Platform Group, Microsoft Ltd .

© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the

date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.