如何解决列表视图中带有卡片/框架的页面X.Forms 4.6+
我对X.Forms有疑问。有谁知道我如何在X.Forms中构建这样的页面?
页面流: 用户必须能够创建注释和/或进行更改。我想将这些注释一个接一个地显示(最好在可滚动列表视图中)。
这是我的代码实现,效果并不理想。
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.TestPage">
<ContentPage.Content>
<AbsoluteLayout BackgroundColor="LightGray" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" >
<StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Blue" AbsoluteLayout.LayoutBounds="1,1,0.1" AbsoluteLayout.LayoutFlags="All" />
<StackLayout AbsoluteLayout.LayoutBounds="1,0.9" AbsoluteLayout.LayoutFlags="All" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="LightGray"/>
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Frame>
<Editor></Editor>
<Button x:Name="CreateOrChangeButton" Text="Create/Change" Clicked=""></Button>
<Button x:Name="DeleteButton" Text="Delete" Clicked=""></Button>
</Frame>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</AbsoluteLayout>
</ContentPage.Content>
</ContentPage>
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。