Jumplist in .NET 6 Visual Studio 2022 how to create an item

295 Views Asked by At

I am trying to add a menuitem to the jumplist (i.e. Create New).

I am in App.xaml and I add the following markup:

<Application.Resources>
    </Application.Resources>
    <JumpList.JumpList>
        <JumpList ShowRecentCategory="True"/>
    </JumpList.JumpList>

JumpList ShowRecentCategory="True"/> throws an error

Object Reference not set to an instance of an Object.

I've been reading a lot of different blogs on how to add jumplist, though a lot of these are from 2009. I'm not seeing anything to add an item to the Jumplist for Windows 11 Visual Studio 2022.

For clarification the jumplist below is what Windows 11 looks like. I want to add custom items into my project. I am just messing around learning new stuff on WPF C#.

Any help is appreciated,

I'm not sure if I need to add a .dll file or any other references. I am using using System.Windows.Shell as well.

This is the jumplist

0

There are 0 best solutions below