【发布时间】:2018-05-29 13:48:00
【问题描述】:
我正在使用 webview 来显示来自数据库的 html 格式的数据。我已经尝试实现 HtmlWebViewSource 来显示数据,但它没有显示。这是我已经实现的。
<WebView VerticalOptions="Fill" BackgroundColor="Red">
<WebView.Source>
<HtmlWebViewSource x:Name="surveyInstruction"/>
</WebView.Source>
</WebView>
.cs
surveyInstruction.Html = result[1][i].vchar_Instruction;
这是我从数据库中得到的
Question<font size="4"><b> Instruction</b></font>
我也提到了这篇文章 Xamarin Forms control where I can show HTML formated text
【问题讨论】:
标签: webview xamarin.forms