-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Closed
Copy link
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewplatform/ioss/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Description
Description
CollectionView 1's doesn't adjust its offset when resizing a footer. When switching its visibility to false, it occupies the same space as if it was visible, but only as long as we don't perform a scroll. It works fine on Android
| iOS | Android |
|---|---|
cv1.mov |
Screen.Recording.2025-02-21.at.16.17.05.mov |
Steps to Reproduce
<Grid RowDefinitions="Auto, *">
<Button Text="Show/Hide footer"
x:Name="button"
Command="{Binding ShowHideFooterCommand}"/>
<CollectionView Grid.Row="1">
<CollectionView.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Item 1</x:String>
<x:String>Item 2</x:String>
<x:String>Item 3</x:String>
<x:String>Item 4</x:String>
<x:String>Item 5</x:String>
<x:String>Item 6</x:String>
</x:Array>
</CollectionView.ItemsSource>
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding}"
Margin="0,10"
BackgroundColor="Red"
HeightRequest="200"/>
</DataTemplate>
</CollectionView.ItemTemplate>
<CollectionView.Footer>
<ContentView.Triggers>
<DataTrigger TargetType="ContentView"
Value="False">
<Setter Property="HeightRequest"
Value="0"/>
</DataTrigger>
</ContentView.Triggers>
</CollectionView.Footer>
</CollectionView>
</Grid>Link to public reproduction project repository
No response
Version with bug
9.0.40 SR4
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Metadata
Metadata
Assignees
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewplatform/ioss/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working