【发布时间】:2014-03-09 07:04:12
【问题描述】:
我是 Windows Phone 8 开发的新手。我想展示Toast notifiation 和it is suggested that I need to change in Package.Appxmanifest file。我使用 C# 作为语言。
我正在使用VS2012 Express for Windows Phone。 WMAppManifest.xml 和 AppManifest.xml 由 Visual Studio 向导创建,但我找不到 Package.Appxmanifest。
请建议是否有任何其他方式显示 toast 通知。
显示 toast 的代码:
string toast = "This is toast";
ShellToast t = new ShellToast();
t.Title = "Non null";
t.Content = toast;
t.Show();
【问题讨论】:
-
值得指出的是,链接的答案适用于 Windows 8/RT(而不是 Windows Phone 8)的 Windows Store Apps;关于发送Toasts for Windows Phone on MSDN 有很好的文档
-
+1。谢谢。我将通过建议的链接。
-
@rockstartprogrammer 我已经编辑了答案,现在我看到了你想要做什么。您应该编辑问题的标题,因为它与问题没有任何关系。
标签: c# visual-studio visual-studio-2012 windows-phone-8 notifications