I am trying to use Recent and Frequent JumpLists in my C # application. I am using Windows Codepack v1.1 (http://code.msdn.microsoft.com/WindowsAPICodePack). I initialize JumpLists every time the application starts, and I AddRecent () in JumpList every time I open a project in the application.
Something fails because JumpLists just don't appear when you right-click the application icon in the taskbar. I have one file that appears once, but that's it!
Initialization:
private void InitializeJumpLists() { if (TaskbarManager.IsPlatformSupported) { JumpList recentJumpList = null; JumpList frequentJumpList = null; TaskbarManager.Instance.ApplicationId = Application.ProductName; recentJumpList = JumpList.CreateJumpList(); recentJumpList.KnownCategoryToDisplay = JumpListKnownCategoryType.Recent; recentJumpList.Refresh(); frequentJumpList = JumpList.CreateJumpList(); frequentJumpList.KnownCategoryToDisplay = JumpListKnownCategoryType.Frequent; frequentJumpList.Refresh(); } }
Opening of the project:
private void OpenProject(string path, bool isFromRecentFilesList) { DialogResult result = ConfirmProjectClosing(); if (result == DialogResult.Yes) Save(); else if (result == DialogResult.Cancel) return; using (new Wait()) {
What am I missing?
source share