WP7:如何展示吐司?

mon*_*yag 6 windows-phone-7

我尝试使用ShellToast作为Android Toast通知的模拟(没有重定向).在一个例子中:

        new ShellToast(){
            Content = "HerContent",
            Title = "MyTitle",
            NavigationUri = new Uri("/Tits.xaml?size=" + 4, UriKind.Relative)
        }.Show();
Run Code Online (Sandbox Code Playgroud)

看起来不错.

但是吐司不会在我的模拟器中显示出来.我的代码错了,或者是仿真问题?模拟器以受限模式运行:我的显卡已经过时了

Ku6*_*opr 7

ShellToast只能从中显示Background Agent.如果您尝试从前台应用程序显示它,请使用Coding4Fun ToastPrompt控件