【发布时间】:2019-12-25 21:21:48
【问题描述】:
我为画廊视图创建了一个示例。为此,我使用了 flowlistview nuget。它在 Android 中运行良好,但在 iOS 中它在网格中显示一个奇怪的箭头。有什么想法吗?
UserPhotos.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"
xmlns:flv="clr-namespace:DLToolkit.Forms.Controls;assembly=DLToolkit.Forms.Controls.FlowListView"
x:Class="MyApp.UserPhotos"
Title="Photos">
<ContentPage.Content>
<StackLayout Padding="10" Margin="5">
<flv:FlowListView
HasUnevenRows="True"
FlowColumnCount="2"
FlowItemTappedCommand="{Binding ItemTappedCommand}"
SeparatorVisibility="Default"
FlowItemsSource="{Binding userAlbumsList}">
<flv:FlowListView.FlowColumnTemplate>
<DataTemplate>
<Frame x:Name="itemTemp"
Margin="5"
CornerRadius="5"
BackgroundColor="#5d6d20"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<StackLayout Padding="0,8,0,8"
VerticalOptions="Center"
HorizontalOptions="Center">
<Image Aspect="AspectFit"
HeightRequest="60"
WidthRequest="60"
Source="album.png"
HorizontalOptions="CenterAndExpand"
VerticalOptions="CenterAndExpand" />
</StackLayout>
</Frame>
</DataTemplate>
</flv:FlowListView.FlowColumnTemplate>
</flv:FlowListView>
</StackLayout>
</ContentPage.Content>
</ContentPage>
【问题讨论】:
标签: c# xamarin xamarin.forms xamarin.ios