android - 我正在工作 Xamarin.forms 并在 xaml 文件中收到此错误
解决方案
在 aPage
中,您只能有一个布局元素。在该布局元素内,您可以拥有无限的嵌套元素。
因此,您现在拥有的所有内容都应该根据您的需要包装在 StackLayout、Grid 或类似文件中。
像这样:
<ContentPage>
<StackLayout>
<!-- Your current layout -->
</StackLayout>
</ContentPage>