Windows 7 : WindowsAPICodePack und JumpLists in .Net

Von Mario Meir-Huber Autor Feed 18. August 2009 22:55

Die neue Taskleiste in Windows 7 hat auch für Entwickler weitere Neuerungen gebracht. Dies sind die Jumplists. Diese werden bei Rechtsklick auf eine Applikation aufgerufen. Ebenso wie im vorigem Beispielmuss vorher die Referenz und der Namespace importiert werden:

image

Im nächsten Schritt wird noch der Namespace importiert:

using Microsoft.WindowsAPICodePack.Taskbar;

Dann kann man sich auch schon an die JumpLists machen. Zuerst erstellt man sich eine JumpList mit der statischen Methode “JumpList.CreateJumpList()”.

JumpList jumpList = JumpList.CreateJumpList();

Aufgaben für die JumpList werden in so genannten “UserTasks” ausgegeben. Diese können beispielsweise JumpListLinks oder JumpListSeparators enthalten.

jumpList.AddUserTasks(new JumpListLink("notepad.exe", "Etwas schreiben ..."));
jumpList.AddUserTasks(new JumpListSeparator());
jumpList.AddUserTasks(new JumpListLink(@"C:\a.txt", "Dokument öffnen"));

Wichtig ist auch noch das das ganze zum Schluss aktualisiert wird:

jumpList.Refresh();

 

Comments

>

8/19/2009 2:59:11 PM #

Windows 7: Windows7APICodePack - Toolbar Buttons

Windows 7: Windows7APICodePack - Toolbar Buttons

codefest.at

>

12/18/2009 10:48:09 AM #

Pingback from mantronic-games.de

Mantronic-Software  » Vorschaufenster in der Windows 7 Taskleiste manipulieren

mantronic-games.de

>

5/21/2010 7:50:15 AM #

Pingback from 141.binggreen.com

Is350 Electronic, Is350 For Sale In Az Lexus Is 350 Base

141.binggreen.com

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading





Werbepause

CodeFest.at on Facebook

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

www.microsoft.com/austria | © 2009 Microsoft Corporation. Alle Rechte vorbehalten.
BlogEngine.NET 1.5.0.7 powered by atwork