【发布时间】:2019-04-01 08:52:50
【问题描述】:
我正在使用 WebView 并构建自己的 html。我想将 webview 绑定到表单上其他地方的更改。这是我的 xaml:
<WebView HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
Margin="0">
<WebView.Source>
<HtmlWebViewSource x:Name="WebViewSoruce1" Html="{Binding Description}"/>
</WebView.Source>
</WebView>
这是我的描述模型代码:
public string Description
{
get {
return _description;
}
set
{
_description = value;
RaisePropertyChanged();
}
}
这适用于 Android,但不适用于 iOS。任何建议将不胜感激。
【问题讨论】:
标签: xamarin xamarin.forms xamarin.ios