C# Windows 10 IoT(RPI2)上没有Toast通知
如何让ToastNotification在Windows 10 IoT上运行?(覆盆子皮2) 我正在使用这段代码,它使用MicrosoftUWP社区工具包()。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没
由于某些原因,它不会在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()));