Jumplist & Taskbar - Session 1 Win7 Launch


Published on

Windows 7 Launch Presentation - Jumplist & Taskbar. (For Developers)

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Welcome noteWelcome to Windows® 7 Launch!Hello…My name is…And I am …
  • Taskbars, Jump listsOverlaysDuring today’s event we’ll focus on showing you how you can take advantage of the features in our newest Operating System, Windows® 7. Our goal is to show you the value in Windows 7, the power of the features to unlock new scenarios, enhanced existing ones, and provide our end users the best Windows experience. We’ve only got 3 session, and there are multiple Windows 7 features. The truth is that today’s 3 session only provide a glimpse into what Windows has to offer and we are far from covering everything that Windows 7 has to offer. We will however focus on features and opportunities that we think will best reward your time and effort. This is the first session in which you’ll soon see what it takes to build great Windows® 7 Applications. [CLICK TO ADVANCE THE SLIDE ANIMATION] In this session we’ll talk about what it takes to build great Applications that look and feel like first class Windows® 7 Applications. That means ensuring that your Application is compatible with Windows 7, Optimizing your performance and look and feel, and also using some of the more compelling desktop features that Windows 7 has to offer like the Taskbar and Libraries. to make sure your application feels like a first class Win 7 citizen. The Second session talks about creating dynamic and adoptive UI using Windows 7 Location and Sensor platform as well as how to get the most out of your graphics cards. The last session talks about creating modern Applications using Windows® Ribbon and enhancing interactions with Multitouch.
  • Today I am going to talk about something that I think is a Hidden gem. In Windows7 and is going to make a huge impact in the coming year.
  • After 25 years of Windows® it was time to change the Taskbar paradigm.With every version, there seemed to emerge more and more launch surfaces, making the UI clumsy and confusing.The new taskbar epitomizes cleanliness and elegance.Design goals: User productivity, easier window switching, common apps and destinations at your fingertips (literally with Multitouch ) and much more.Explain a little bit about each icon state that we see here in the taskbar screenshot.
  • The Windows® 7 Taskbar include some features that you might want to consider using in your next Application: Overlay Icons Jump Lists Thumbnail Toolbars Custom Thumbnail Tabbed ThumbnailThe key takeout from this short discussion — even if you don’t want to use the advanced features — make sure you have a great taskbar icon (at all kinds of DPI levels) and forget about Quick Launch and the system notification area (“tray”) because no one is going to look there for your App. Use taskbar buttons and the wealth of UI paradigms such as thumbnail Toolbars, Jump Lists etc. instead.
  • Go through the following features in the Windows® UI:Microsoft® Outlook 2010 and the the useful tasksWindows® Live Messenger with the overlay iconWindows® Explorer or Windows® Internet Explorer® 8 with the Progress BarWindows Media® Player with the thumbnail toolbarAny random Office App with a Jump List (or Internet Explorer 8 Jump List)Internet Explorer 8 with the tabbed thumbnailsEmphasize: Users are going to expect this from every Application out there!
  • Use the ZooBar WPF Application developed for the Seattle Zoo allows for the tracking of animals, incorporating multiple features of the new Windows® Taskbar.The focus here should be on the less popular features, i.e. we will show the overlay icon and progress bar but only briefly without the code. The real focus should be on thumbnail previews and thumbnail toolbars.Launch the Application, explain that we’re seeing the Seattle Zoo and that there are multiple animals that we can track.Show the tasks in the Jump List – each task will open a web page (click one of them if there is Internet access).Show overlay icons by clicking Ctrl+I repeatedly, this sets the focus to the “current” activity that’s happening in the Zoo.Show the Taskbar Progress Bar by clicking Ctrl+P repeatedly - this gives us an estimation of how full the Zoo is getting.Pin a few animals (including the bear and the elephant), note that they now appear in the Taskbar.There’s a preview of these animals on the Taskbar and by hovering over the preview we see the Zoo map (doesn’t take us to the relevant region), by clicking the preview we navigate to the area of the Zoo where this animal is located (doesn’t work when the App is in the background).Show the video preview of some animal, note that the thumbnail preview shows only the video and not the entire map so that the video is actually watchable from the Taskbar thumbnail, without switching.Click on the photo images for some animal that has them, note that there’s now a thumbnail with these images and you can use the thumbnail toolbar to navigate them from the Taskbar.The code to show:MainWindow.xaml.cs – TabbedThumbnailActivated for the scrolling logicZoobarWorker.cs – AddPreview for the registration logic with the taskbarPhotoViewer.xaml.cs – CreateToolbarButtons for creating the thumbnail toolbarThe code must be beautified significantly before we can use it on the stage-------------------This is only a backup, we can remove it----------------------------Desirable demo: Something like a web browser with tabs, or a cool app that has a few tabs for different media.(This WPF demo needs to be written from scratch and then the Windows API Code Pack added on top of it for the separate elements/tabs)Steps:Run the App, go through the tabs to show off the content.Go to the Taskbar thumbnail and notice that there’s just a single thumbnail for all the tabs.Go to the code and add small portions of code so that there’s a thumbnail for each tab (or significant element).Run the App again, notice that now there are multiple taskbar thumbnails.(Optional: Add a thumbnail toolbar to one of the tabs which has pictures or some other media in it that can be controlled from the Taskbar).
  • Modernize to Monetize
  • Today I am going to talk about something that I think is a Hidden gem. In Windows7 and is going to make a huge impact in the coming year.
  • Changes made in Windows® Vista such as:UACSession 0 isolationMajor version number change (move to NT 6.0)The point is that transitioning to Windows® Vista was hard partly because of the major breaking changes in the system and the compatibility challenges that arose. It wasn’t the only problem — there was also a change in the driver model which caused Users to be stuck without drivers for their hardware, and other issues. Through App Compat we have learned from Windows Vista that so many breaking changes in one box is probably not a good idea for Windows® 7.As harsh as Windows Vista breaking changes where, it was required update to make Windows Vista more secure and robust system. Windows 7 is based on these changes and take them one step forward providing superior performance and reliability. With that said we made hundreds of changes to Windows 7 underlying systems from Windows Vista. Most of these changes are the driving force behind Windows 7 great performance and reliability.
  • But, coming from Windows® Vista we learned that developers, YOU, wish to maintain as much consistency between Operating Systems as possible and to keep to a minimum the breaking changes. Therefore it is very important to note that Windows®7 introduces very few breaking changes.And as a General guideline: If you’re compatible with Windows Vista, you’re probably compatible with Windows 7, with the exception of few very low-level APIs and few components that were removed in Windows 7.Anecdotal evidence to the strong desire of not breaking compatibility is the version number – Windows 7 has the version number 6.1, because it was so important to keep Applications compatible (some Applications do version checking of the major Operating System version and bail if they see something unfamiliar)There are very few breaking changes: Windows® Live Mail, High DPI, Internet Explorer® 8, no significant security or programming model breaking changes like in the Vista timeframe.
  • Today I am going to talk about something that I think is a Hidden gem. In Windows7 and is going to make a huge impact in the coming year.
  • Windows® 7 dramatically improves performance and power management so that you can create Applications that optimize the mobile experience or just better experience . As a result, your Applications will run faster on Windows® 7, consume less resources, be more visually appealing, and at the bottom line it will be easier to manage and create – which helps you be more productive. [Optimize = Become a Good Windows 7 Citizen]Windows 7 comes with a bunch of features that you can use to optimize your Application’s performance to make your Application run better on Windows 7 - by doing so you can drive higher end Users experience and high quality software that in return help the Operating System to be more stable, preferment, and secure Operating System that providing great User experience. Usually, this also means improved performance and reliability for your Application. Here are few examples of Windows features that are not too difficult to implement, but can drive a lot of value.Restart and recovery is a mechanism that makes Windows automatically restart your app into its previous state when the Operating System needs to reboot for a system update, or in case your app crash or hang. KTM is the mechanism that supports file system and registry transactions.Cancelable I/O and I/O prioritization are key to more responsive Applications, and especially for background operations.The revamped ETW offers high-performance instrumentation with up to 1,000,000 messages/sec (CHECK THIS STATISTIC) and various kinds of loggers and consumersWindows® Error Reporting is a built-in mechanism for reporting crash and hang information to Microsoft (can be customized to an internal share) and there are ways to add information to a WER report or to solicit it. WER information can be queried from the WinQual portal.Trigger-Start services offer background services a way to stay out of the system and improve its resource utilization when they are not needed, the system will start them up when a trigger occurs. We’ll see this shortly.There are also power efficiency improvements that make the system’s battery life longer, as well as diagnostic mechanisms and a couple of new APIs that we’ll see shortly.[note to speaker – because time constrains we will not show a slide on power, just talk about it here]Users want a “all day” battery life on their mobile PCBattery life is affected by CPU, disk, display and other factors, but CPU is the most significant and is the one whose energy utilization has been going up EXPONENTIALLY over the last couple of decadesIt’s impossible to build an Operating System that will last 9 hours of battery life without us fellow developers—the Operating System can bring us only this farWindows 7 gives us some tools but it’s eventually our responsibility:The Operating System itself uses less powerCoalescing timers mean you can have multiple adjacent timers adjust themselves so that there are less invocations in a period of time (allowing for more sleep time)Power availability requests let an Application indicate exactly why it wants the system to stop from transitioning into a low power-state (e.g. Internet Explorer® is downloading a file, or you’re playing a movie in Windows® Media Player)Therefore, for Users to really enjoy long battery life, we all have to make better job at it, and Windows 7 offer great tools to support that.
  • Background services in Windows are a pain – the Operating Systemships with a lot of them in the box, but ISVs add even more.Eventually background services decrease performance, increase power consumption, expand the attack surface and affect the system’s reliability.The goal should be – have background services run for as little time as possible and with the smallest footprint. To that end:Convert services to scheduled tasksMinimize the security privileges granted to a service (per-service SID, service privileges API etc.)Minimize the work services do on startup, shutdown and on idleThe types of service startup evolved over the years:Windows® XP gives us a very Boolean choice.On Windows® Vista we have delayed auto-start for services that don’t want to delay logon.On Windows 7 we have trigger-start services, which means the service isn’t running when it has nothing to do!There are lots of available triggers, and if none suits you there’s always the custom ETW event trigger which means your service can be triggered by anything that can write to an ETW log (or the Event Log).The idea is to convert services to Trigger-Start services and make them stop themselves when their work is done. This is more similar to tasks than to traditional NT services.
  • [TDM, DEV][What - Windows 7 Taskbar feature overview] Not all the features in the Windows 7 Taskbar are applicable to all applications. Each application needs to be evaluated on its own.
  • [TDM, DEV] [Taskbar Icons – Details]ICONSAre you putting your best foot forward?Make sure your icon looks greatCheck different DPIsCheck different glass colors and disabled glassHow does Color Hot-track look?Determined by your icon’s dominant colorIcons OverlayDo you need to surface notifications?Does this help the user make a decision?Single icon at a time (LIFO)No animationsIdeally, application-specific Group vs. UngroupCan you retire your icon in the Notification Area?Progress barDoes your program require progress status?Does this help the user make a decision?Do you already surface a progress dialog?One detailed progress at a time[TDM, DEV]ICONSAre you putting your best foot forward?Make sure your icon looks greatCheck different DPIsCheck different glass colors and disabled glassHow does Color Hot-track look?Determined by your icon’s dominant colorIcons OverlayDo you need to surface notifications?Does this help the user make a decision?Single icon at a time (LIFO)No animationsIdeally, application-specific Group vs. UngroupCan you retire your icon in the Notification Area?
  • Native codeITaskbarList3* ptl = ...;ptl->SetOverlayIcon(hwnd, hicon, L"Accessible Description");ptl->SetProgressState(hwnd, TBPF_NORMAL);for (inti = 0; i < MAX; ++i) {ptl->SetProgressValue(hwnd, i, MAX);}
  • NativeDwmSetWindowAttribute( ...,DWMWA_HAS_ICONIC_BITMAP,...);DwmSetWindowAttribute(...,DWMWA_FORCE_ICONIC_REPRESENTATION,...);/* in the WndProc */case WM_DWMSENDICONICLIVEPREVIEWBITMAP: HBITMAP hbm = ...;DwmSetIconicLivePreviewBitmap(...hbm,...);
  • Native codeDwmSetWindowAttribute( ...,DWMWA_HAS_ICONIC_BITMAP,...);DwmSetWindowAttribute(...,DWMWA_FORCE_ICONIC_REPRESENTATION,...);/* in the WndProc */case WM_DWMSENDICONICTHUMBNAIL: HBITMAP hbm = ...;DwmSetIconicThumbnail(hwnd, hbm, ...);
  • [TDM, DEV][Windows 7 Taskbar Details]In the earlier taskbar posts, we discussed how Windows Media Player’s deskband offers valuable background music controls, but only a mere 3% of sessions ever enjoy the functionality. The new taskbar exposes a feature called Thumbnail Toolbars that surface up to seven window controls right in context of taskbar buttons. Unlike a Jump List that applies globally to a program, this toolbar is contextual to just a specific window. By embracing this new feature, Media Player can now reach a majority of peopleDoes your window require controls?Surface commands that users access regularlyCommands must be contextual to a windowDon’t duplicate Jump List tasksCan you replace a Desktop Toolbar?
  • Native codeUINT wm_tbc = RegisterWindowMessage( "TaskbarButtonCreated");MSG m; GetMessage(..., &m);if (m.message == wm_tbc) { ITaskbarList3* ptl = ...; THUMBBUTTON btn = {...};ptl->ThumbBarAddButtons(m.hWnd, 1, &btn);}
  • [TDM, DEV]All the major web browsers offer tabs and a method of managing these tabs. One could argue tab toolbars are really like taskbars since they facilitate switching. These TDI (Tabbed Document Interface) and MDI (Multiple Document Interface) programs have always resorted to creating their own internal window management systems as the Windows taskbar was not optimized to help their scenarios. Some programs like Excel did custom work to surface their child windows on the taskbar, but this approach was somewhat of a hack.Since the new taskbar already groups individual windows of a program under a single button, we can now offer a standard way for programs that have child windows to expose them. Again, the taskbar offers a single, consistent place to access real windows as well as child windows. These custom window switchers also behave as regular windows on the taskbar with rich thumbnails and even Aero Peek.Does your program have switchers that need to be surfaced?Do users need to regularly switch to them?Provide a visual representation for your client area’s switcherTaskbar bitmap (thumbnail)Peek bitmap (real size)
  • Native Use ITaskbarList3::RegisterTab, SetTabOrder, SetTabActiveChild window must create a proxy top-level window for custom thumbnail and peekThe proxy window is typically invisibleProxy window must handle WM_ACTIVATE and WM_SYSCOMMAND
  • [TDM, DEV][Windows 7 Taskbar Details – Important enough to not hide]Jump Lists are a new feature of the Windows 7 taskbar that accomplish just this. Think of this feature as a mini Start Menu for each program or an evolved version of the system menu. First, the you don’t need to even start the program to quickly launch a file or access a task. Second, destinations don’t take up valuable space on the taskbar; they are automatically organized by their respective program in a simple list. Should one have ten programs pinned or running on her taskbar, this means she could have quick access to over 150 destinations she uses all the time, without even the need to customize the UI! Since the Jump List shows lots of text for each of its items, gone are the days of having identical icons on your taskbar that are indistinguishable without a tooltip. Should you wish to keep a specific destination around, you can simply pin it to the list.
  • [ DEV][Why - Windows 7 Taskbar details]Jump Lists are a new feature of the Windows 7 taskbar that accomplish just this. Think of this feature as a mini Start Menu for each program or an evolved version of the system menu. Jump Lists surface commonly used nouns (destinations) and verbs (tasks) of a program. There are several advantages this new approach provides. Do destinations apply to your program?Nouns: Items consumed/created by your programDynamic based upon individual user patternRecent or frequent or custom list?Do tasks apply to your program?Verbs: Program actionsTasks should not require your program to be runningTasks are static and apply to all usersTasks should globally apply to your program, not a specific window
  • Native - SHAddToRecentDocs(SHARDW_PATH, "file.ext");
  • NativeIObjectCollection* poc = ...;IShellLink* task = ...;poc.AddObject(task);ICustomDestinationList* pcdl = ...;pcdl.BeginList(...);IObjectArray* poa = ... poc;pcdl.AddUserTasks(poa);pcdl.CommitList();
  • NativeIObjectCollection* poc = ...;IShellItem* item = ...;poc.AddObject(item);ICustomDestinationList* pcdl = ...;pcdl.BeginList(...);IObjectArray* poa = ... poc;pcdl.AppendCategory(L"Sales", poa);pcdl.CommitList();
  • Jumplist & Taskbar - Session 1 Win7 Launch

    1. 1. Taking Your Application to the Next Level with Windows 7<br />Mithun Dhar<br />Developer evangelist<br />Microsoft Corporation<br />
    2. 2. What the heck is a <br /> Developer Evangelist??<br />Email: mithund@microsoft.com<br />Twitter:@mithund<br />Facebook: http://facebook.com/mithund<br />Blog: http://blogs.msdn.com/mithund<br />
    3. 3. See the Future of Developer Technology <br />The Professional Developers Conference (PDC) is the definitive developer event focused on the technical strategy of the Microsoft developer platform. <br />Who Should Attend<br />The PDC is for leading-edge developers and technology leaders involved in making strategic technology decisions for their companies and organizations.<br />What You’ll Get at the PDC<br /><ul><li>Microsoft’s vision and roadmap for the future of developer technology
    4. 4. Deep, technical content delivered by Microsoft’s technology leaders
    5. 5. Hands-on access to the latest developer technologies and over 1,000 Microsoft product and technology experts available to answer your questions
    6. 6. Unique networking opportunities with leading-edge developers and technology leaders just like you</li></ul>When & Where<br />Los Angeles Convention Center<br />Conference | Nov 17 – 19<br />Workshops & Boot Camp | Nov 16<br />Pricing<br />Event Registration - $2095<br />Discount through Oct 13 - $1795 <br />Additional Workshop Fee - $395<br />One Day Pass - $695<br />Workshop Only Pass - $495<br />Attend the Windows 7 Developer Boot Camp on Nov 16 – FREE!<br />This session is open to the public. You must register online to attend. More info: <br />http://microsoftpdc.com/Registration<br />http://microsoftpdc.com<br />
    7. 7. Housekeeping<br />Cell Phones on stun mode, please!<br />Restrooms<br />Swag – Windows 7 Ultimate <br />Evaluations – Please fill out!<br />Speakers<br />Mithun Dhar (DE)<br />Jason Mauer (DE)<br />YochayKiriaty (DE)<br />
    8. 8. Today’s Agenda<br />Taking Your Application to the Next Level with Windows 7 <br /><ul><li>Taskbars
    9. 9. Jump lists
    10. 10. Overlays</li></ul>Building Next Generation UI with Multitouch & Windows Ribbon in Windows 7<br /><ul><li>Ribbon Markup and API
    11. 11. Multitouch Developer Options
    12. 12. Multitouch </li></ul>Beyond Human Interaction with Windows 7 Sensor and Location Platform<br /><ul><li>Use Sensor Platform to Give Life to Your Application
    13. 13. Location Location Location
    14. 14. Shine on Modern Graphics Hardware with DirectX</li></li></ul><li>Windows 7 - Taskbar<br />Look how far we have come!<br />
    15. 15.
    16. 16.
    17. 17.
    18. 18.
    19. 19.
    20. 20.
    21. 21.
    22. 22. Design Goals For New Taskbar<br /><ul><li>Single launch surface
    23. 23. Easily controllable
    24. 24. Clean, noise-free, and simple
    25. 25. New opportunities for extensibility
    26. 26. Enhanced productivity</li></li></ul><li>Taskbar Buttons<br />Consolidation<br />Quick launch<br />Notification area icon<br />Desktop shortcut<br />Running application windows<br />Multiple windows and hover<br />Running<br />Not running<br />Active<br />
    27. 27. The New Windows 7 Taskbar<br />Evolution of launch surfaces<br />Clean, sleek, elegant design<br />Enhances user productivity, making switching between windows much easier<br />Host of other useful features<br />
    28. 28. Windows Taskbar Features<br />Main Features<br />Overlay icons & progress bars<br />Jump lists (destinations, tasks)<br />Thumbnail toolbars<br />Custom thumbnails<br />Tabbed thumbnails<br />Design Tip<br />Build a great Taskbar Icon<br />Forget about Quick Launch and the system tray<br />
    29. 29. Windows 7 Taskbar<br />A Tour<br />demo<br />
    30. 30. Windows 7 Taskbar<br />ZooBar<br />demo<br />
    31. 31. Summary<br />Build a great Windows 7 Application<br />Get compatible<br />Optimize<br />Differentiate<br />Get the most out of Windows 7<br />Greater reliability<br />Better performance <br />Resource utilization<br />Empower users to do more<br />
    32. 32. Additional Windows 7 Resources<br />Technical Resources<br /><ul><li>Windows Developer Center on MSDN http://msdn.microsoft.com/en-us/windows/dd433113.aspx
    33. 33. Windows Application Compatibility Developer Center http://www.msdn.microsoft.com/en-us/windows/aa904987.aspx
    34. 34. Windows 7 Remediation Labs http://www.readyset7.com/workshops
    35. 35. Windows 7 Training Kit for Developers http://go.microsoft.com/?linkid=9681321
    36. 36. “PhotoView” Reference Application (XP2Win7Project) http://code.msdn.microsoft.com/XP2Win7</li></ul>Training Resources<br />Community Resources<br /><ul><li>Training Offers—Exclusive for Launch Attendees www.microsoft.com/learning/careeroffers
    37. 37. Windows 7 Blog for Developers www.windowsteamblog.com/blogs/developers.aspx
    38. 38. Windows 7 on Channel 9 http://channel9.msdn.com/tags/Windows+7</li></li></ul><li>© 2009 Microsoft Corporation. All rights reserved. <br />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.<br />
    39. 39. Addendum<br />
    40. 40. Application Compatibility<br />Working Together :)<br />
    41. 41. Application Compatibility Moving from Windows XP to Windows 7<br />Version checking<br />User Account Control<br />Filtered token and privilege elevation<br />Data redirection<br />Windows integrity levels<br />Internet Explorer® protection mode<br />Session 0 isolation<br />
    42. 42. Application CompatibilityMoving from Windows Vista to Windows 7<br />Version checking<br />Low level binary changes<br />Low level network stack<br />Antivirus<br />Removed components<br />Windows Mail<br />Windows Movie Maker<br />Microsoft Agent (msagent.exe)<br />
    43. 43. Get CompatibleAvailable Resources<br />Windows Application Compatibility Center<br />http://msdn.microsoft.com/en-us/windows/aa904987.aspx<br />Application Compatibility on TechNet<br />http://technet.microsoft.com/en-us/windows/aa905066.aspx<br />Application Compatibility Online Remediation<br />http://readyset7.com/workshops<br />Application Compatibility in Windows 7 Training Kit<br />http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=1c333f06-fadb-4d93-9c80-402621c600e7 <br />
    44. 44. Optimizing<br />Working Better <br />
    45. 45. Optimize for PerformanceGet the Most Out of Windows Performance Enhancements<br />Application restart and recovery with Restart Manager<br />I/O priorities and cancelable I/O<br />File System and Registry Transaction Support<br />Event Tracing for Windows (ETW) – high-performance instrumentation<br />Windows Error Reporting<br />Windows Troubleshooting Platform<br />Trigger-Start Services<br />
    46. 46. Trigger-Start Services<br />Background services affect performance, security, reliability, and power consumption<br />You want to minimize the amount of services running at a given time<br />You want to minimize service footprint and runtime<br />Service startup types<br />Windows XP – Auto-Start / Manual<br />Windows Vista – XP + Delayed Auto-Start<br />Windows 7 – Windows Vista + Trigger-Start<br />Available triggers<br />Domain join, IP address available, device arrival, group policy change, and custom<br />
    47. 47. Windows 7 for Developers<br />Jump Lists<br />Answer:<br />Question:<br />How important?<br />Jump Lists are probably the most important feature that applications need to take advantage of in order to truly shine on Windows 7<br />Put important documents at the user’s fingertips<br />You also expect the common tasks to be there<br />TaskBar<br />
    48. 48. Jump ListsA detailed look<br />Pinned category<br />Destinations<br />(“nouns”)<br />Known categories<br />Custom categories<br />User tasks<br />Tasks<br />(“verbs”)<br />Taskbar tasks<br />
    49. 49. Windows 7 for Developers<br />Jump Lists<br />Each taskbar button is associated with a jump list. <br />This is a retractable menu that shows a collection of items and tasks that are relevant to the given application. <br />TaskBar<br />
    50. 50. Windows 7 for Developers<br />Jump Lists<br />JumpListLink – an object that extends the ShellLink object and implements IJumpListTasks<br />TaskBar<br />
    51. 51. the taskbar<br />The Windows 7 Taskbar<br />The Windows 7 Taskbar<br />The evolving user interface….<br />
    52. 52. 512K of Ram !<br />
    53. 53.
    54. 54.
    55. 55.
    56. 56. Taskbar Buttons<br />Consolidation<br />Quick launch<br />Notification area icon<br />Desktop shortcut<br />Running application windows<br />Multiple windows and hover<br />Running<br />Not running<br />Active<br />
    57. 57. Windows 7 Taskbar<br />Enhanced user experience<br />Quick and easy launch of applications<br />Easier to manage windows <br />The user is in control<br />Clean and lightweight<br />Standard Windows UX guidelines<br />All of Microsoft’s products<br />Enhanced Taskbar & Desktop <br />Jump Lists <br />Thumbnail Toolbars <br />Custom Switchers<br />Icons<br />Overlay Icons<br />Progress Bars<br />
    58. 58. Windows 7 Taskbar – Icons<br />Face of your program<br />Large and small icons<br />Only customer can pin<br />Color hot-track<br />Icon Overlay<br />Surface important notifications<br />Appears over your program’s icon<br />Progress bar<br />Surface important notifications<br />Appears in your taskbar button<br />
    59. 59. IconsBest practices<br />Are you putting your best foot forward?<br />Make sure your icon looks great<br />Check different DPIs<br />Check different glass colors and disabled glass<br />How does Color Hot-track look?<br />Determined by your icon’s dominant color<br />
    60. 60. Get More From Taskbar ButtonsOverlay and progress icons<br />Consolidate: Uncluttered notification area<br />Provide progress and additional information through the taskbar button<br />It’s free if you use standard progress dialogs<br />
    61. 61. Taskbar Overlay and ProgressDesign considerations<br />Notification area is now user controlled:<br />Leave yourself out if possible!<br />Use taskbar buttons for custom progress or status information<br />
    62. 62. Peek Preview (Aero Peek)<br />Live peek without a click<br />
    63. 63. Live Thumbnails<br />Live thumbnails: A live preview<br />Windows Vista: One thumbnail per window<br />Windows 7: Grouped thumbnails<br />
    64. 64. Windows 7 Taskbar – Thumbnails<br />Remote-control for a window<br />Surface key commands<br />Accessible from taskbar thumbnail <br />Up to seven buttons<br />
    65. 65. Thumbnail ToolbarsContrasting Thumbnail Toolbar commands and user tasks<br />
    66. 66. Exposing Custom ThumbnailsOverriding Automatic Thumbnail Preview<br />To provide a custom thumbnail preview representation for a window:<br />Set the DWM window attribute to say you will provide an “iconic bitmap” for the window<br />Respond to the window messages DWM will then send in order to set the preview – done for both thumbnail- and full-sized previews<br />
    67. 67. Hi phone!<br />
    68. 68.
    69. 69.
    70. 70. Windows 7 Taskbar – Custom Switchers<br />Surface custom UI (e.g. TDI/MDI)<br />Custom thumbnails for each window<br />Appears in your program’s window list<br />
    71. 71. MDI and TDI Window Switchers<br />What about Internet Explorer tabs?<br />
    72. 72. Windows API Code Pack for the .NET Library<br />Managed class library to access to Win 7 features<br />Windows Shell namespace <br />Windows Vista and Windows 7 Task Dialogs. <br />Support for Shell property system. <br />Taskbar Jumplists, Icon Overlay and Progress bar. <br />Common file dialogs<br />Support for Direct3D 11.0 and DXGI 1.0/1.1 APIs. <br />Sensor Platform APIs <br />Extended Linguistic Services APIs <br />http://code.msdn.com/windowsAPICodePack<br />
    73. 73. Windows 7 Taskbar – Jump Lists<br />Mini Start Menu for your program<br />Surface key destinations and tasks<br />Customizable<br />Accessible via right-click and via drag<br />APIs use the name “Destination List”<br />
    74. 74. Pinned category<br />Destinations<br />(“nouns”)<br />Known categories<br />Custom categories<br />User Tasks<br />Tasks<br />(“verbs”)<br />Taskbar Tasks<br />Windows 7 Taskbar – Jump Lists<br />
    75. 75. Customizing the Jump ListStep 1: Get the free stuff to work<br />Associate your program with the file extension<br />Use common file dialogs<br />Use explicit recent document API<br />
    76. 76. Customizing the Jump ListStep 2: Adding tasks<br />What would your user like to do?<br />Launch your application with special arguments?<br />Launch other applications?<br />Tasks are IShellLink objects<br />Rich shortcut semantics including arguments, working directory, icon, and so on.<br />
    77. 77. Customizing the Jump ListStep 3: Do you have categories?<br />Does it make sense to categorize documents?<br />Is frequent, recent, pinned not enough?<br />For example, Inbox, Outbox, Sales, Marketing …<br />Categories contain IShellItem or IShellLink objects<br />These are documents: You need a file association<br />
    78. 78. Some metrics…<br />More than 90% of sessions have fewer than 15 windows<br />More than 70% of sessions have fewer than 10<br />Non-default taskbar options are used by 0-10% of users<br />