private static void ShowNotification(XmlDocument toastXml)
{
try
{
ToastNotificationManager.CreateToastNotifier("ChatterBoxClientAppId")
.Show(new ToastNotification(toastXml));
}
catch (System.Exception)
{
// Most likely an exception occurs here when the win8 client is used together with
// a win10 one on same machine. A thrown exception will prevent some UI components
// to be updated.
}
}