Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Windows 10 IoT(RPI2)上没有Toast通知_C#_Iot_Windows 10 Iot Core_Windowsiot_Windows Community Toolkit - Fatal编程技术网

C# Windows 10 IoT(RPI2)上没有Toast通知

C# Windows 10 IoT(RPI2)上没有Toast通知,c#,iot,windows-10-iot-core,windowsiot,windows-community-toolkit,C#,Iot,Windows 10 Iot Core,Windowsiot,Windows Community Toolkit,如何让ToastNotification在Windows 10 IoT上运行?(覆盆子皮2) 我正在使用这段代码,它使用MicrosoftUWP社区工具包()。 由于某些原因,它不会在PI上显示toast,但在Windows 10桌面上会显示。toast通知需要一个shell才能运行。但是,目前Windows IoCore没有外壳,因此不支持toast通知。同样,文件选择器、徽章通知、平铺和任何其他需要外壳的功能也不受支持。Toast通知需要外壳才能运行。但是,目前Windows IoCore没

如何让ToastNotification在Windows 10 IoT上运行?(覆盆子皮2)

我正在使用这段代码,它使用MicrosoftUWP社区工具包()。
由于某些原因,它不会在PI上显示toast,但在Windows 10桌面上会显示。

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

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

当前,此功能在Windows 10 IoT core上不受支持。当前,此功能在Windows 10 IoT core上不受支持。
  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()));