开发者

Need help using System.Windows.Shell.JumpList.SetJumpList();

I'm really new to this so this is probably a very simple thing to answer开发者_运维问答 but anyhow... I need to use the method in the title to set a new jumplist for my windows form app, but i don't know what parameters it takes and where to get them. I've read about the method in the MSDN library but their example only worked for a WPF app.

It says it takes the parameters:

application

Type: System.Windows.Application

The application associated with the JumpList.

value

Type: System.Windows.Shell.JumpList

The JumpList to associate with the application.

What i need to know is: What is the first parameter? And how to i access it in a win form app?

(In a WPF i would usually just write App.current, but it doesn't work for form apps)

I'm using Visual Studio 2010 Ultimate (C#).

Thanks in advance!


I don't believe there is a comparable object in WinForms to the WPF System.Windows.Application object. As you'll notice, the System.Windows namespace is specific to WPF.

I have seen this this Windows API CodePack project referenced and it may be another place that you can find more information to continue your endeavors.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜