在Citrix上无法使用WPF TaskbarItemInfo

时间:2018-10-16 19:25:08

标签: wpf taskbar citrix

我有一个WPF应用程序,该应用程序尝试创建TaskbarItemInfo,以便以后能够根据应用程序的状态将叠加层应用到任务栏图标。初始化如下:

this.taskbarItem = new TaskbarItemInfo();
Application.Current.MainWindow.TaskbarItemInfo = this.taskbarItem;

这在计算机上本机运行良好,但是通过Citrix运行时,第二行显示NotImplementedException。有人知道如何绕过这个吗?

在相关说明中,我们还尝试使用JumpList类将JumpList项目添加到同一任务栏图标。这不会抛出,但是不起作用。 示例:

this.jumpList = new JumpList();
JumpList.SetJumpList(Application.Current, this.jumpList);
JumpTask jumpItem = new JumpTask();
        jumpItem.Title = "title";
        jumpItem.ApplicationPath = Path.Combine(Environment.CurrentDirectory, "App.ToolsExecuter.exe");
        jumpItem.Arguments = "argument";
        jumpItem.IconResourcePath = Path.Combine(Environment.CurrentDirectory, "Resources", "App.Icons.dll");
        jumpItem.IconResourceIndex = 1;
        this.jumpList.JumpItems.Add(jumpItem);

JumpList在Citrix上为空。在本地,这很好。

感谢您的帮助!

0 个答案:

没有答案