我有一个弹出菜单,我想在其中显示用HTML编写的手册。所以我创建了一个WebView:
expireAt
我的HTML代码如下:
<?xml version="1.0" encoding="utf-8" ?>
<StackLayout xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewModels="clr-namespace:Test.ViewModels;assembly=Test"
xmlns:windows="clr-namespace:Xamarin.Forms.PlatformConfiguration.WindowsSpecific;assembly=Xamarin.Forms.Core"
x:DataContext="{d:DesignInstance viewModels:ManualViewModel}"
x:Class="Tests.Views.ManualPage">
<WebView HeightRequest="500" WidthRequest="1000" Source="{Binding HtmlSource}"/>
</StackLayout>
打开对话框时,无法在输入字段中输入值。
但是,当我向内容页面输入相同的代码时,它就像一个超级按钮。
有人有主意吗?