Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 10 Windows通用应用程序和托盘_Windows 10_Win Universal App_System Tray - Fatal编程技术网

Windows 10 Windows通用应用程序和托盘

Windows 10 Windows通用应用程序和托盘,windows-10,win-universal-app,system-tray,Windows 10,Win Universal App,System Tray,我打算写一个Windows通用应用程序,它将在托盘中运行。在托盘图标上会有一个带有多个选项的关联菜单(用于添加新的timelog,用于关闭当前timelog)。但根据这篇文章,不可能在托盘中运行WUP。真的吗 托盘是否仅用于系统应用程序和旧式应用程序 还有其他选择吗?要为固定的任务栏图标设置菜单项,可能是 谢谢据我所知,UWP应用程序不可能有托盘图标。以前,Windows应用程序设计为以全屏模式运行 如果这是LOB应用程序,您可以尝试使用代理组件访问托盘图标功能 谢谢,据我所知,UWP应用程序不

我打算写一个Windows通用应用程序,它将在托盘中运行。在托盘图标上会有一个带有多个选项的关联菜单(用于添加新的timelog,用于关闭当前timelog)。但根据这篇文章,不可能在托盘中运行WUP。真的吗

托盘是否仅用于系统应用程序和旧式应用程序

还有其他选择吗?要为固定的任务栏图标设置菜单项,可能是


谢谢

据我所知,UWP应用程序不可能有托盘图标。以前,Windows应用程序设计为以全屏模式运行

如果这是LOB应用程序,您可以尝试使用代理组件访问托盘图标功能


谢谢,

据我所知,UWP应用程序不可能有托盘图标。以前,Windows应用程序设计为以全屏模式运行

如果这是LOB应用程序,您可以尝试使用代理组件访问托盘图标功能


谢谢,

通用应用程序无法将其自身添加到通知区域,但最近的Windows 10更新使它们能够在右键单击项目的任务栏图标或互动程序时将项目添加到显示的区域

bool jumpListPresent = Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.StartScreen.JumpList");
if (jumpListPresent && JumpList.IsSupported()) 
{
    JumpList jl = await JumpList.LoadCurrentAsync();
    jl.Items.Clear();
    JumpListItem jli = JumpListItem.CreateWithArguments("myJumpListItem", "my Jump List Item");
    jl.Items.Add(jli);
    await jl.SaveAsync();
}

通用应用程序无法将自身添加到通知区域,但最近的Windows 10更新使它们能够在右键单击项目的任务栏图标或互动程序时将项目添加到显示的区域

bool jumpListPresent = Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.StartScreen.JumpList");
if (jumpListPresent && JumpList.IsSupported()) 
{
    JumpList jl = await JumpList.LoadCurrentAsync();
    jl.Items.Clear();
    JumpListItem jli = JumpListItem.CreateWithArguments("myJumpListItem", "my Jump List Item");
    jl.Items.Add(jli);
    await jl.SaveAsync();
}

如果查看应用程序的主要方式是通过任务栏,或者您希望应用程序始终在桌面电脑的后台运行,则通用应用程序不适合该情况,也不适合该情况。如果查看应用程序的主要方式是通过任务栏,或者您希望应用程序始终在桌面电脑的后台运行,则通用应用程序不适合也不适合这种情况。可能没有最后更新,pfff…但谢谢。可能没有最后更新,pfff…但谢谢。