Transition Lists and Windows Forms

I read a few more articles on the stack overflow about implementing the jump list with Windows 7, but they all come from two years ago and basically offer "get the Windows API code package." ( Answer 1 , Answer 2 , ...) I'm trying to implement a jump list in Windows 7, and it looks like there is indeed a JumpList class in .NET 4, so I think the previous answers may be deprecated, and the Windows Code Code Pack is bigger not required.

However, the examples given in the documentation depend on XAML, which I am not familiar with, having only developed Windows Forms applications. In addition, the JumpList.SetJumpList method requires a System.Windows.Application object, which for my whole life I cannot figure out how to extract from my Windows Forms application (which uses the static System.Windows.Forms.Application object). There is a System.Windows.Application.Current property, but in my Windows Forms application it returns null.

So my questions are:

  • Do I still need the Windows API code package to implement the navigation list in my Windows Forms application?

  • Does anyone know of a good example of Windows Forms regarding a simple example that shows how to implement a jump list?

  • Am I just forgetting something obvious in that you cannot get my System.Windows.Application object?

+6
source share
1 answer

System.Windows.Application is WPF. Since you use WinForms, you will not have one of them at hand, and I suggest you stick with the tried and tested Windows API code package.

+4
source

Source: https://habr.com/ru/post/896558/


All Articles