首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Windows10 IoT上无ToastNotification (RPI2)

Windows10 IoT上无ToastNotification (RPI2)
EN

Stack Overflow用户
提问于 2017-08-23 20:28:05
回答 1查看 204关注 0票数 0

如何在Windows10 IoT上运行ToastNotification?(覆盆子Pi 2)。

代码语言:javascript
复制
  ToastBindingGeneric binding = new ToastBindingGeneric();

  binding.Children.Add(new AdaptiveText() { Text = "Foo" });

   binding.Children.Add(new AdaptiveText() { Text = "Trying to do something here hello!!!" });

  ToastContent content = new ToastContent()
  {
    Visual = new ToastVisual()
    {
      BindingGeneric = binding
    }
  };
  ToastNotificationManager.CreateToastNotifier().Show(new ToastNotification(content.GetXml()));

我正在使用这段代码,它使用了Microsoft UWP Community Toolkit ( https://github.com/Microsoft/UWPCommunityToolkit )。由于某种原因,它不会在PI上显示toast,但在Windows10桌面上显示。

EN

回答 1

Stack Overflow用户

发布于 2018-06-05 06:51:50

Toast通知需要一个shell才能运行。但是,目前Windows IOTCore没有外壳,所以不支持toast通知。同样,文件选择器、徽章通知、磁贴和任何其他需要shell的功能也不受支持。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45839737

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档