Windows Phone Foreground Toast

Basically ToastPrompt is an UI component that derives from the Coding4Fun toolkit's abstract PopUp<string, PopUpResult> class.

It is a kind of extended popup that runs in foreground, performs toast like notification: when a background process (such as an async download) has completed notifies the user.

 

    ToastPrompt toast = new ToastPrompt();
    toast.Title = "ToastPrompt";
    toast.Message = "Some message";
    toast.ImageSource = new BitmapImage(new Uri("ApplicationIcon.png", UriKind.RelativeOrAbsolute));
     
    toast.Completed += toast_Completed;
    toast.Show();

  

posted @ 2013-11-10 07:57  MinieGoGo  阅读(192)  评论(0编辑  收藏  举报