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

时间:2015-09-25 10:04:49

标签: notifications desktop-application windows-10 toast

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

观察到的行为:

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

预期行为:

  • Toast通知应在超时后显示在操作中心
  • 关闭和打开后,Toast通知应该仍然存在 行动中心

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

1 个答案:

答案 0 :(得分: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