Skip to content

Commit

Permalink
just some experimenting with taskbar categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Saurwein committed Sep 4, 2023
1 parent a42cfd3 commit 59ab8d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions VSLauncherX/MainDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,23 @@ private void AddItemToTaskbar(VsItem item)
{
var il = new ItemLauncher(item, visualStudioInstances.GetByIdentifier(item.VsVersion));

// Note: to add items grouped by their category, create a custom category and add the items to that category.
// but, since the taskbar does not support hierarchies, we should think about a different way to do this
// the group/category must be added in the calling method, not here, then add the JumpListItem to the parent passed to this method.
//
//
// var cat = new JumpListCustomCategory(item.Parent.Name);
// Add a jump task to the jump list.
var jll = new JumpListLink(il.GetLauncherPath(), item.Name);
// need to find a way to pass admin requirement
jll.Arguments = il.CreateLaunchInfoString();
jll.IconReference = new Microsoft.WindowsAPICodePack.Shell.IconReference(Assembly.GetExecutingAssembly().Location, 1);
jll.ShowCommand = Microsoft.WindowsAPICodePack.Shell.WindowShowCommand.Hide;

// cat.AddJumpListItems(jll);

this.TaskbarJumpList.AddUserTasks(jll);
// this.TaskbarJumpList.AddCustomCategories(cat);

}
private void RebuildTaskbarItems(VsFolder? folder = null)
Expand Down

0 comments on commit 59ab8d8

Please sign in to comment.