C# 为什么在Visual Studio 2012 for Windows Phone Express中找不到Package.Appxmanifest?

C# 为什么在Visual Studio 2012 for Windows Phone Express中找不到Package.Appxmanifest?,c#,visual-studio,visual-studio-2012,windows-phone-8,notifications,C#,Visual Studio,Visual Studio 2012,Windows Phone 8,Notifications,我是Windows Phone 8开发的新手。我想给大家展示一下《代码》Toast Notification,还有。我使用C#作为语言 我正在使用适用于Windows Phone的VS2012 ExpressWMAppManifest.xml和AppManifest.xml由Visual Studio向导创建,但我无法找到Package.Appxmanifest 请建议是否有其他方式显示toast通知 显示toast的代码: string toast = "This is toast"; Sh

我是Windows Phone 8开发的新手。我想给大家展示一下《代码》Toast Notification,还有。我使用C#作为语言

我正在使用适用于Windows Phone的
VS2012 Express
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();

编辑:

好的,现在我看到您正在尝试创建并显示一个。关键是,当应用程序位于前台时,您不能显示toast通知。当你的应用程序不在前台时,它们可以在屏幕上显示。您的代码还可以,但应该放在
后台代理中

如果仍要在应用程序中显示toast通知,可以使用以下控件执行此操作:


你的链接帖子是关于Windows应用商店的

对于Windows Phone应用程序,您需要检查WMAppManifest.xml文件中的
ID\u CAP\u PUSH\u通知功能:


经过大量调试后,我保留了所有功能。问题仍然是一样的。问题是什么?我第一次尝试在
ID\u CAP\u PUSH\u通知上设置,但不起作用。但“不起作用”是什么意思。你想干什么?到目前为止你做了什么?你知道普通的应用程序不能随机显示toast通知吗。只有后台任务才能从代码中显示toast通知。如果您的应用程序是activeWorth,则推送通知也不会显示,并指出链接的答案适用于Windows 8/RT(而不是Windows Phone 8)的Windows应用商店应用程序;有关于发送+1的良好文档。谢谢我将浏览建议链接。@rockstartprogrammer我已经编辑了答案,现在我看到了您想要做的事情。你应该编辑问题的标题,因为它与问题没有任何关系。
ToastPrompt toast = new ToastPrompt();
toast.Title = "Title";
toast.Message = "message";
toast.ImageSource = new BitmapImage(new Uri("ImageUri", UriKind.RelativeOrAbsolute));
toast.Show();