Unexpected Behavior of Toast Notifications for windows 10 desktop applications

跟風遠走 提交于 2019-12-08 07:56:26

问题


I am adding Toast Notifications to my desktop application and experiencing strange behavior of Action Center in Windows 10

Observed Behavior:

  • Toast Notifications does not appear in Action Center after time out
  • Toast Notifications appear in action center when you click on the action center button during the toast display,but it disappears as
    soon as you close the action center

Expected Behavior:

  • Toast notifications should appear in Action Center after time out
  • Toast notification should still be there after closing and opening of action center

Can some one please tell me if this is the defined behavior of Toast Notifications in windows 10 as Microsoft Outlook Toast Notifications behave the same way too.


回答1:


This was answered on https://stackoverflow.com/a/34072291/3836163

Win32 apps need to set up a COM server in order to have toasts persisted in Action Center: https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/send-local-toast-desktop



来源:https://stackoverflow.com/questions/32779767/unexpected-behavior-of-toast-notifications-for-windows-10-desktop-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!