[英]Windows Phone local toast notification Text wrapping and image is not showing
在我的應用程序中,從應用程序本身發送吐司通知。
ToastTemplateType toastTemplateXml = ToastTemplateType.ToastText03;
XmlDocument toastXml = ToastNotificationManager.GetTemplateContent(toastTemplateXml);
XmlNodeList toastTextAttributes = toastXml.GetElementsByTagName("text");
toastTextAttributes[0].InnerText = "Welcome to My app! Let us know how you heared about us.";
string text = DateTime.Now.ToString("MM-dd-yyyy hh:mm:ss",
CultureInfo.InvariantCulture);
toastTextAttributes[1].InnerText = text;
ToastNotification toast = new ToastNotification(toastXml);
ToastNotificationManager.CreateToastNotifier().Show(toast);
並且在文件中顯示
ToastText03
在第一行和第二行之間包裹一串粗體文本,在第三行上包裹一串常規文本。
但是當顯示時,第一行根本沒有包裝,並且丟失了尾部。
我需要顯示吐司通知的完整第一行嗎?
沒有辦法解決這個問題。 Windows Phone 8.12僅支持toastText02模板。 此模板在同一行上顯示應用程序的徽標以及兩個字符串,其中第一個字符串為粗體。
有關詳細信息和示例圖像,請參見土司模板目錄 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.