Windows通用应用程序中的MarkdownTextBlock控件中未呈现图像

时间:2017-03-18 19:41:14

标签: c# xaml uwp markdown windows-community-toolkit

我有以下xaml代码 -

Class ApplicationUser
{
[Key]
Int ApplicationUserId

// other properties
}

Class Student
{
[Key]
Int StudentId

Int? AppUserId

[ForeignKey("AppUserId")]
Virtual ApplicationUser AppUser
}

我试图在Windows通用应用程序(Windows 10应用程序)上显示下面的降价文本。

这是markdown中的文字 -

在markdown中表示的

示例文本。 \ n \ n请click here了解更多详情。 \ n \ n \ n![SQL2016] /(http://windowsitpro.com/site-files/windowsitpro.com/files/imagecache/large_img/uploads/2015/05/sql2016.jpg)/

在我的Windows通用应用程序中,MarkdownTextBlock控件下面只呈现文本和超链接,但不呈现图像:(

                        

它呈现为 -

enter image description here

但是,完全在浏览器中呈现相同的降价 -

enter image description here

我花了很多时间在这上面......但是无法弄清楚原因..这个图像渲染不可能用markdowntextblock吗?如果我在这里使用webbrowser,不确定性能如何。我的XAML中缺少什么?

1 个答案:

答案 0 :(得分:4)

是的,这不是你的错。 UWP社区工具包的当前版本(1.3.1)目前不支持MarkdownTextBlock的图像。

但我们可以看到这些人正在研究它: https://github.com/Microsoft/UWPCommunityToolkit/issues/916 https://github.com/Microsoft/UWPCommunityToolkit/pull/958

即使他们已经准备就绪,我们只等待版本1.4发布日期,即2017年4月5日。

如果您不能等待,您可以从源代码构建工具包并在项目中使用它。