Windows Store apps开发[46]当用户点击Toast通知时,我们可以做些什么
注:本文由BeyondVincent(破船)原创首发
转载请注明出处:BeyondVincent(破船)@DevDiv.com
![Windows Store apps开发[46]当用户点击Toast通知时,小弟我们可以做些什么](http://img.reader8.net/uploadfile/jiaocheng/201401107/2848/2014012822485321714.png)
更多内容请查看下面的帖子
[DevDiv原创]Windows 8 开发Step by Step
在之前的博文中,我曾对Toast通知进行了介绍,如下链接,建议不清楚Toast通知的可以去看看
Windows Store apps[9]通知概述(Toast,Tile和Badge)
使用 NotificationsExtensions 填充锁屏提醒、磁贴和 Toast 模板
private void sendToast(object sender, RoutedEventArgs e){ IToastImageAndText01 toastContent = ToastContentFactory.CreateToastImageAndText01(); toastContent.Launch = "this is launch string test"; toastContent.TextBodyWrap.Text = "破船,恭喜你,中500W!"; toastContent.Image.Src = "/Assets/98_avatar_big.jpg"; ToastNotificationManager.CreateToastNotifier().Show(toastContent.CreateNotification());}
2、触发toast通知
3、获取launch字符串
代码下载地址:http://www.devdiv.com/thread-147671-1-1.html
开发花絮 o(∩_∩)o