windows-8 - 我可以将图像作为数据 URI 嵌入到 Windows 8/10 Toast 通知中吗?

标签 windows-8 windows-10 toast

我正在尝试编写一个在 Windows 8 及更高版本上提供 Toast 通知的应用程序。

是否可以不引用本地磁盘上的图像文件,而使用数据 URI 来通过传递来显示 toast 的 XML 显示图像?到目前为止,我无法提供任何文档,而且我的项目仍处于研究阶段(因此还没有代码可以“简单”尝试)。

最佳答案

没有。 Toast(或图 block )中的图像不支持 DataUris

更新/文档/证明:

对于8
来自 https://msdn.microsoft.com/en-us/library/windows/apps/hh761494.aspx

In this set of templates, the image element is expressed using one of these protocols:
•http:// or https:// A web-based image.
•ms-appx:/// An image included in the app package.
•ms-appdata:///local/ An image saved to local storage.
•file:/// A local image. (Only supported for desktop apps.)

10
来自 https://msdn.microsoft.com/en-us/library/windows/apps/br230844.aspx

The URI of the image source, using one of these protocol handlers:
•http:// or https:// A web-based image.
•ms-appx:/// An image included in the app package.
•ms-appdata:///local/ An image saved to local storage.
•file:/// A local image. (Supported only for desktop apps. This protocol cannot be used by Windows Store apps.)

奖励,在 WP 8.X 上,您甚至无法指定图像,它只是使用应用程序图标。

关于windows-8 - 我可以将图像作为数据 URI 嵌入到 Windows 8/10 Toast 通知中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33425233/

相关文章:

c# - 调试时 "Form"上的这些黑底数字是什么?

c - 如何下载 NCurses 并将其添加到适用于 Windows 10 的 Code::Blocks 16.01 IDE

java - 显示 toast 消息

java - 为什么 'toast' 消息在 Android 中不起作用?无法修复bug,请帮忙!

XAML 数据网格数据模板

Listview 选择显示,无填充且无复选标记

c# - HttpClient.GetAsync 在具有锁屏访问以及 TimeTrigger 或 MaintenanceTrigger 的后台任务中失败

c# - 制作自己的 Windows 8 应用程序主题

node.js - npm 安装在 Windows 10 上失败(node-gyp 重建)

gwt - 在 GWT 中使用 NotificationMole