UWP Toast notification is not displaying(appearing in front) in Windows 11 Beta
But same thing is working on Windows 10
Sample Code:
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);
Is Toast Notification Mechanism updated in windows 11 ?
I had this same problem.
It seems Windows 11 has Focus Assist enabled by default. To disable it or configure it, simply look for "Focus Assist" in Windows Settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With