Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP7: How to show a toast?

I trying to use ShellToast as analog of the Android toast notification (without redirect). In one of examples:

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

Looks good.

But the toast will not be showed in my emulator. My code is wrong, or it's problem of emulation? The emulator runs in a restricted mode: my graphics card is old

like image 366
monyag Avatar asked Feb 10 '12 04:02

monyag


1 Answers

You can show ShellToast only from Background Agent. If you trying to show it from foreground app, use Coding4Fun ToastPrompt control for this

like image 56
Ku6opr Avatar answered Nov 15 '22 10:11

Ku6opr