Click here to Skip to main content
11,428,281 members (46,180 online)
Click here to Skip to main content
Add your own
alternative version

WPF: Integrating Our Application with the Windows 7 Taskbar (II)

, 3 Aug 2010 CPOL
Let your user interact with your application using the new features of the Windows 7 Taskbar
WPFJumplistThumbnails.zip
WPF JumpList And Thumbnail Toolbars
WPF JumpList And Thumbnail Toolbars
bin
Debug
WPF JumpList And Thumbnail Toolbars.exe
WPF JumpList And Thumbnail Toolbars.vshost.exe
WPF JumpList And Thumbnail Toolbars.vshost.exe.manifest
Release
Commands
images
client.png
invoice.png
update.png
My Project
MyExtensions
Settings.settings
WPF JumpList And Thumbnail Toolbars.vbproj.user
WPF JumpList And Thumbnail Toolbars.suo
Imports System.Reflection
Class Application

    Private Sub Application_Startup(ByVal sender As Object, ByVal e As System.Windows.StartupEventArgs) Handles Me.Startup
        If e.Args.Count > 0 Then
            Select Case e.Args(0)
                Case "update"
                    MessageBox.Show("No updates needed")
                Case "searchclient"
                    MessageBox.Show("You have picked Clients")
                Case "searchinvoice"
                    MessageBox.Show("You have picked Invoices")
            End Select
        End If

        'Create our Jumplist Tasks
        Dim SearchUpdates As New Shell.JumpTask
        SearchUpdates.Title = "Search for Updates"
        SearchUpdates.Arguments = "update"
        SearchUpdates.Description = "Find new updates for the application"
        SearchUpdates.CustomCategory = "Management"
        SearchUpdates.IconResourcePath = Assembly.GetEntryAssembly().CodeBase
        SearchUpdates.ApplicationPath = Assembly.GetEntryAssembly().CodeBase

        Dim SearchClient As New Shell.JumpTask
        SearchClient.Title = "Search clients"
        SearchClient.Arguments = "searchclient"
        SearchClient.Description = "Search the Clients database"
        SearchClient.CustomCategory = "Clients"
        SearchClient.IconResourcePath = Assembly.GetEntryAssembly().CodeBase
        SearchClient.ApplicationPath = Assembly.GetEntryAssembly().CodeBase

        Dim SearchInvoice As New Shell.JumpTask
        SearchInvoice.Title = "Search Invoice"
        SearchInvoice.Arguments = "searchinvoice"
        SearchInvoice.Description = "Search the Invoices database"
        SearchInvoice.CustomCategory = "Invoices"
        SearchInvoice.IconResourcePath = Assembly.GetEntryAssembly().CodeBase
        SearchInvoice.ApplicationPath = Assembly.GetEntryAssembly().CodeBase

        Dim List As New Shell.JumpList
        List.JumpItems.Add(SearchUpdates)
        List.JumpItems.Add(SearchClient)
        List.JumpItems.Add(SearchInvoice)
        Shell.JumpList.SetJumpList(Application.Current, List)
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Josué Yeray Julián Ferreiro
Software Developer (Senior) Freelance Developer
Spain Spain
MVP Windows Platform Development 2014
MVP Windows Phone Development 2013
MVP Windows Phone Development 2012
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150428.2 | Last Updated 3 Aug 2010
Article Copyright 2010 by Josué Yeray Julián Ferreiro
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid