WP7: How to show a toast?

I am trying to use ShellToast as an analogue of notifications for Android toasts (without redirecting). In one example:

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

Looks nice.

But the toast will not be shown in my emulator. Is my code incorrect or emulation problem? The emulator works in a limited mode: my video card is outdated

+6
source share
2 answers

You can show ShellToast only with Background Agent . If you are trying to show it from the foreground application, use

Coding4Fun ToastPrompt
+7
source

U must have a graphics card with DirectX 10 support with the WDDM 1.1 driver, then the emulator will work fine.

0
source

Source: https://habr.com/ru/post/908118/


All Articles