Toast Notifications组

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

在UWP中,我正在使用Toast Notifications。像这样:

ToastNotification toast = new ToastNotification(content.GetXml());
var notification = ToastNotificationManager.CreateToastNotifier();
notification.Show(toast);

一切都运行得很好,但是当我多次这样做时,通知会一个接一个地显示,当我删除下一个显示的当前通知时。我想在上面显示每个新通知,如下所示:

enter image description here

有没有办法做到这一点?

c# notifications uwp
1个回答
2
投票

这是Windows 10中唯一可实现的行为。我认为原因是与Windows 8相比,通知现在可以操作,因此它们逐个显示,以便用户能够响应它们。通知仅在动作中心一次出现。

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