简体   繁体   中英

How can i get my Toast Notification from outside the application?

Hi i got stuck with this problem, i can't find out how to get Toast notification from outside the application, i cant get it from inside like this :

private void ToastNotificationReceived(NotificationEventArgs e)
    {
        //liste_notifications.Items.Add("Toast : " + e.Collection["wp:Text1"]);
        if (e.Collection["wp:Text1"].Contains("Client"))
        {
            ClientNotification cn = new ClientNotification();
            cn.FromWho = e.Collection["wp:Text1"].Substring(6, 6);
            cn.Notification = e.Collection["wp:Text1"].Substring(12);
            cn.Date = DateTime.Now;
            ClientItems.Add(cn);
            PersistData();
        }

but i don't have a clue how to do it from outside. Thanks for your help

Toast通知显示在屏幕顶部,并且您的应用程序内部未执行任何代码/事件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM