【问题标题】:Unexpected Behavior of Toast Notifications for windows 10 desktop applicationsWindows 10 桌面应用程序的 Toast 通知的意外行为
【发布时间】:2015-12-23 03:27:00
【问题描述】:

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

观察到的行为:

  • Toast 通知在超时后不会出现在操作中心
  • 当您单击 Toast 通知时,操作中心会显示 吐司显示期间的操作中心按钮,但它消失为
    关闭操作中心后立即

预期行为:

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

有人可以告诉我这是否是 Windows 10 中 Toast 通知的定义行为,因为 Microsoft Outlook Toast 通知的行为方式也相同。

【问题讨论】:

    标签: notifications desktop-application windows-10 toast


    【解决方案1】:

    这是在https://stackoverflow.com/a/34072291/3836163 上回答的

    Win32 应用需要设置 COM 服务器才能让 Toasts 持久保存在 Action Center 中:https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/send-local-toast-desktop

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-20
      • 1970-01-01
      • 2017-02-06
      • 2014-11-29
      • 1970-01-01
      • 2018-05-27
      • 1970-01-01
      • 2017-01-26
      相关资源
      最近更新 更多