Windows 7: Jump Lists

Sign in to queue

The Discussion

  • User profile image
    Walker (Windows Outreach Team)

    Thanks Arian for this helpful tool! If readers are at all interested in the development history of Jump Lists, be sure to check out this interview with their inventor, Rebecca Deutsch: http://www.microsoft.com/presspass/features/2010/jan10/01-04Win7JumpList.mspx?rss_fdn=TopStories">http://www.microsoft.com/presspass/features/2010/jan10/01-04Win7JumpList.mspx?rss_fdn=Top Stories

    Cheers!

    Walker

    Windows Outreach Team

  • User profile image
    Kevin

    Thanks very helpfull.

    One question, how would i get the recent list to display visited websites "urls", like IE8 jumplist.?

  • User profile image
    Kevin

    OK this is how i get the history to show.

    private void ReportUsage()

           {

               XmlDocument myXml = new XmlDocument();

               myXml.Load(historyXml);

               string list = historyXml;

               jumpList.ClearAllUserTasks();

               foreach (XmlElement el in myXml.DocumentElement.ChildNodes)

               {

                   string s = el.GetAttribute("url");

                   JumpListLink jll = new JumpListLink(Assembly.GetEntryAssembly().Location, s);

                   jll.IconReference = new IconReference(Path.Combine("C:\\Program Files\\ACS Digital Media\\TOC WPF Browser\\Icon1.ico"), 0);

                   jll.Arguments = el.GetAttribute("url");

                   jumpList.AddUserTasks(jll);

               }

               jumpList.Refresh();

           }

    Now another question which has me stumped.

    i want the program to launch from the taskbar with the same parameters as it does from the jumplist.

    I'm using xml to store Favorites and history, if i launch from the taskbar it uses the xml's in the program folder, however if i launch from the jumplist it uses xml's which have been placed in the System32 folder.

    Anyone know how to fix this.?

    Thanks

  • User profile image
    Kevin

    Ok, forgot to set working directories, that solved the issue with the xml.

    Thanks

  • User profile image
    Clint

    @M.des YourJumpListObject.AddUserTasks(New JumpListSeparator())

    This was covered in the article Smiley

  • User profile image
    M.des

    How to add a line with VB.net?

  • User profile image
    Anonymous

    How do you create a setup project? Visual Studio 2010 has no such template.

  • User profile image
    Clint

    @Anonymous in Visual Studio 2010, Other Project Types -> Setup and Deployment -> and there are multiple types you can pick from there

  • User profile image
    cheap fashion clothing

    Shop Designer clothing for men’s and women’s. Large collection of discount clothing such as Burberry Womem Coats, Football Club Suits,brand underwear, Ed hardy Men Jackets and other cheap fashion clothing .

  • User profile image
    Nicolas

    It's all fun and games, but how the heck are we supposed to install that pack? There are virtually no instructions and everything starts from step 11. I'd love to use these shiny features, if I only knew how.

  • User profile image
    securigy

    Here is a Jumplist question I cannot find the answer anywhere:

    My app is VoIP app so I'd like to have a jumplist that has recent calls and frequent calls, or for simplicity it could be tasks.  A "normal" jumplist basically launches an app, in the example below it's a notepad:

    _jumpListManager.AddUserTask(new ShellLink
                {
                    Path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "notepad.exe"),
                    Title = "Launch Notepad",
                    IconLocation = shell32DllPath,
                    IconIndex = 14
                });

    In my particular case my app is not executable - it is an Outlook Add-In, so I cannot try to start Outlook again with some kind of parameter - it will not be passed to my add-in by Outlook.

    So I either need to write my own little helper app that accepts parameters or use some kind of trick (later about it). The little app would be windowless (but not the service) and carries its own complications, like communicating with my Outlook Add-In securely - using named pipes or similar opens quite a security hole in Outlook - and also seems too laboreous.... The "trick" solution is to use "regedit /s filename.reg" that will get my data into the registry from the reg file that my Outlook Add-in creates, while my add-in will be watching specific registry key. For the latter I will get UAC prompts for every jumplist click (and for now I cannot find how to over this without elevating entire outlook or disabling UAC - not something I want to do... So, basically my question is: is there any way to subscribe to Jumplist_Clicked event (or appropriate event) and get the event plus data in my Outlook Add-In?

  • User profile image
    AlQ

    I can't find setup project anywhere, and the "other types" category doesn't exist. Where is the setup project in visual c# 2010?

    Oh, I am using the express version, I hope that isn't a problem.

  • User profile image
    digitalgun

    A code sample would be a great addition.

Add Your 2 Cents