1

Windows 11 ベータ版で UWP トースト通知が表示されない (前面に表示される)

しかし、同じことが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 で更新されていますか?

4

2 に答える 2