Description
Description
Hi
With the following Xaml on a page, the page doesn't get garbage collected when navigating back:
<CollectionView ItemsSource="{Binding Items}">
<CollectionView.ItemTemplate >
<DataTemplate>
<Grid>
<Label Text="Test" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
Steps to Reproduce
- Run the project
- Click Button and go back again multiple times
- Observe that
~MyPage()
never gets called
Link to public reproduction project repository
https://github.com/marco-skizza/MauiCollectionView
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, I was not able test on other platforms
Affected platform versions
iPadOS 17.3.1 on iPad mini 6
Did you find any workaround?
No
Relevant log output
No response
Metadata
Assignees
Labels
Type
Projects
Status
Done