I wanted to add a very basic toast notification for an actively running windows 8 app to indicate that a long running process has been completed. At the most basic level I needed to build up some XML and use it to create a ToastNotification that is shown via the ToastNotifier. E.g.
using Windows.UI.Notifications; //... Windows.Data.Xml.Dom.XmlDocument toastDOM = new Windows.Data.Xml.Dom.XmlDocument(); toastDOM.LoadXml(@""); ToastNotification toast = new ToastNotification(toastDOM); ToastNotifier tn = ToastNotificationManager.CreateToastNotifier(); tn.Show(toast); Body text that wraps over three lines
However, when run, the ToastNotifier has the Setting value "DisabledByManifest". So somewhere in the Package.appxmanifest I need to enable toast notifications. Apparently it is "in the Notifications section of the Application UI tab" (Source).
I couldn't see it initially. After a bit of hunting I found it under "All Image Assets".
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOYGb9SDHe_g9aFkNBRneh6NiqlZKsdStQqslXfbNsTHYxht2M4mAEgRF5Xc6sOHFrHYkN7RSCYXAOamEsVbnrnaA3IFoz8OCwEN4Q_P6EmsLUB8cRfD6i3DPbKFJo3DGOu99zXod8Jz07/s320/AppManifestEnableToastNotifications.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFt28rW6CWGeSILR0_KQn5LWTXAPbxM4XQeexNfOPnHyRevvARoLNAP6s-9IAC6ZbBjDBWP0qZbQ5cpnQwjfukNlCCQwdLquPT_DcVAG-z5zy3RPneBcYltoEyipjBtFI2BrKvfd0gftsM/s320/SampleNotification.png)