HQt*_*izy 9 xaml xamarin xamarin.forms
我在Xamarin.Forms中有一个测试页面,它让我得到这个错误,我该如何解决这个问题?
属性内容为null或不是IEnumerable
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="Project1.Page1">
<ContentPage.Content>
<Label Text="Page"></Label>
<Editor Text="I am an Editor" />
</ContentPage.Content>
</ContentPage>
Run Code Online (Sandbox Code Playgroud)
Rad*_*nov 22
该Content属性是类型View.你不能有两个观点.替换为
<StackLayout >
<Label Text="Page"></Label>
<Editor Text="I am an Editor" />
<StackLayout>
Run Code Online (Sandbox Code Playgroud)