Windows 10桌面应用程序的Toast Notifications的意外行为

问题描述 投票:1回答:1

我正在向桌面应用程序添加Toast Notifications,并在Windows 10中遇到Action Center的奇怪行为

观察到的行为:

  • 超时后,Toast Notifications不会出现在Action Center中
  • 当您在吐司显示期间单击操作中心按钮时,Toast Notifications会出现在操作中心,但它会消失 一旦你关闭行动中心

预期行为:

  • 超时通知应在超时后显示在操作中心中
  • 关闭和开放行动中心后,仍应保留Toast通知

有人可以告诉我这是否是Windows 10中Toast Notifications的定义行为,因为Microsoft Outlook Toast Notifications的行为也是一样的。

notifications desktop-application windows-10 toast
1个回答
0
投票

https://stackoverflow.com/a/34072291/3836163回答了这个问题

Win32应用程序需要设置一个COM服务器,以便在Action Center中保持Toast:https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/send-local-toast-desktop

© www.soinside.com 2019 - 2024. All rights reserved.