.NET Jump List [closed]
Asked Answered
C

5

13

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

Countersubject answered 21/1, 2009 at 19:57 Comment(0)
H
13

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

Heckelphone answered 21/1, 2009 at 20:0 Comment(1)
Just FYI, full task bar support, including jump lists, progress bar, and thumbnail customization, was added in .NET 4.0 under the System.Windows.Shell namespace.Abundant
C
6

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

Concerned answered 21/6, 2009 at 14:26 Comment(0)
C
5

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
    }
Countersubject answered 21/1, 2009 at 20:10 Comment(0)
R
3

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

Risk answered 25/5, 2009 at 3:49 Comment(0)
P
0

Starting from .NET 4.0 JumpLists can be used easily with System.Windows.Shell namespace.

See reference and code examples at Microsoft's official JumpList Class documentation.

Parulis answered 7/7, 2014 at 10:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.