1

UWP Toast 通知未在 Windows 11 Beta 中显示(出现在前面)

但同样的事情也在 Windows 10 上运行

示例代码:

var toastNotifier = ToastNotificationManager.CreateToastNotifier();

ToastContent  content = new ToastContentBuilder()
                            .AddText(message)
                            .AddAppLogoOverride(new Uri(this.LogoUri))
                            .GetToastContent();

// Create the notification
ToastNotification toast = new ToastNotification(content.GetXml());
toast.ExpirationTime = DateTime.Now.AddSeconds(this.ToastDisplayTime);
toastNotifier.Show(toast);

Windows 11 中是否更新了 Toast 通知机制?

4

2 回答 2

1

我有同样的问题。

Windows 11 似乎默认启用了 Focus Assist。要禁用或配置它,只需在 Windows 设置中查找“Focus Assist”。

于 2021-10-26T22:12:37.550 回答
0

似乎在最新的 Windows 11 问题已修复

于 2021-10-28T14:22:40.313 回答