tags:

views:

3970

answers:

4
+12  Q: 

.NET Jump List

Is there a .NET library/tutorial available that will let me show me how to customize the Windows 7 Jump List for my application?

+11  A: 

channel9.msdn.com did a series of discussions covering the new taskbar, including the jumplist.

Jump Into Windows 7 Taskbar Jump Lists

Additionally, The Windows 7 Blog started a series of posts that covering developing the task-bar, including how to work with jump-lists. You can view their initial post at http://blogs.msdn.com/yochay/archive/2009/01/06/windows-7-taskbar-part-1-the-basics.aspx

Jonathan Sampson
That does it, thanks.
Jake Pearson
+3  A: 

Also it looks like this question has already been answered: Another Article

And here is the simplest way to fill your jump list with the contents of your app's recent files list (Thanks Code Project!:

    void AddFileToRecentFilesList(string fileName)
    {
        SHAddToRecentDocs((uint)ShellAddRecentDocs.SHARD_PATHW, fileName);          
    }

    /// <summary>
    /// Native call to add the file to windows' recent file list
    /// </summary>
    /// <param name="uFlags">Always use (uint)ShellAddRecentDocs.SHARD_PATHW</param>
    /// <param name="pv">path to file</param>
    [DllImport("shell32.dll")]
    public static extern void SHAddToRecentDocs(UInt32 uFlags,
        [MarshalAs(UnmanagedType.LPWStr)] String pv);

    enum ShellAddRecentDocs
    {
        SHARD_PIDL = 0x00000001,
        SHARD_PATHA = 0x00000002,
        SHARD_PATHW = 0x00000003
    }
Jake Pearson
+3  A: 

See here Windows Team Blog. Microsoft are working on .Net wrappers for a lot of the new Windows 7 features.

Jamie Penney
+5  A: 

Windows 7 API Code Pack contains the official implementation for .NET, see http://code.msdn.microsoft.com/WindowsAPICodePack

Luke