Is there a .NET library/tutorial available that will let me show me how to customize the Windows 7 Jump List for my application?
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
Windows 7 API Code Pack contains the official implementation for .NET, see http://code.msdn.microsoft.com/WindowsAPICodePack
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
}
See here Windows Team Blog. Microsoft are working on .Net wrappers for a lot of the new Windows 7 features.
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.
© 2022 - 2024 — McMap. All rights reserved.