问题描述
我想在我的页面中显示 html,我使用 TextType="Html" 作为标签,但它不起作用,它显示为普通文本。我认为这很简单,因为我看到很多文档都在使用它,没有任何问题。
XAML:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bufib.Views.Others.DoaaPage">
<ContentPage.Content>
<ScrollView x:Name="parent" Padding="10">
<StackLayout x:Name="stackLyt">
<ActivityIndicator x:Name="activityIndicator" IsRunning="True" IsVisible="false"/>
<Label x:Name="doaaContentLbl" TextType="Html" FontSize="Medium" />
</StackLayout>
</ScrollView>
</ContentPage.Content>
</ContentPage>
CS:
private async void Init()
{
...
doaaContentLbl.Text = doaa.Content;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)