我有一個問題,我只能從每個串列中看到4個專案。我試著在集合視圖上進行VerticalOptions Fill/FillandExpand等操作,但仍然無法看到所有專案。試圖在集合視圖外面做HeightRequest = 99999,在里面做9999,似乎暴露了專案,所以我知道它們在那里。但這是對問題的錯誤解決方案
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"/span>
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"。
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"。
x:Name="AnimeListPagee"。
x:Class="OtakuApp.Pages.AnimeListPage"/span>>
<RefreshView x:Name="HomeRefreshView"
IsRefreshing="{Binding IsBusy}"
Command="{Binding RefreshCommand}"
RefreshColor="白色"/span>
BackgroundColor="DodgerBlue">>
<CollectionView ItemsSource="{Binding AnimListsList}"。
VerticalOptions="Start"
BackgroundColor="Transparent"/span>
ItemsLayout="VerticalList"。
SelectionMode="None"/span>
x:Name="CollectionView1">/span>
<CollectionView.ItemTemplate>
<DataTemplate>/span>
<StackLayout>/span>
< Label Text="{Binding name}" FontSize="30">
</Label>/span>
<CollectionView ItemsSource="{Binding entries}"
BackgroundColor="Transparent"/span>
VerticalOptions="Start"/span>
ItemsLayout="VerticalList"。
SelectionMode="Single"/span>
SelectedItem="{Binding BindingContext.Entry, Source={x:Reference Name=AnimeListPagee}}"
x:Name="CollectionView2">/span>
<CollectionView.ItemTemplate>
<DataTemplate>/span>
<StackLayout>/span>
<Label Text="{Binding media. Title.Romaji}"></Label>
<Label Text="{binding progress}"/span>> </Label>>
<Frame BackgroundColor="Green"/span>>
<StackLayout>/span>
<Frame BackgroundColor="Yellow" xct:TouchEffect. NativeAnimation="True"。
xct:TouchEffect.Command="{Binding BindingContext. InfoCommand, Source={x:Reference Name=AnimeListPagee}}"></Frame>
<Frame BackgroundColor="Red" xct:TouchEffect. NativeAnimation="True"。
xct:TouchEffect.Command="{Binding BindingContext. InfoCommand2, Source={x:Reference Name=AnimeListPagee}}"></Frame>/span>
</StackLayout>/span>
</Frame>/span>
</StackLayout>/span>
</DataTemplate>/span>
</CollectionView.ItemTemplate>
</CollectionView>
</StackLayout>/span>
</DataTemplate>/span>
</CollectionView.ItemTemplate>
</CollectionView>
</RefreshView>/span>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/312708.html
標籤:

