Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to access collection view child ui elements

Hey everyone i have DotNet Maui project. I want to access child elements of my CollectionView. I don't want to do anything with their data so i don't think MVVM helps me here. I want to set an animation on the items that pass a certain x and y position.

So in short how can i access the child elements of my CollectionView? Can i get their x and y positions? if i can't is there any solution for the animation i want to set? i want to have a fade and scale down animation to the items on CollectionView when the user scroll down. but whatever i do i can't access the child elements to set the animation.

like image 711
Fardin Farnezhad Avatar asked Jan 22 '26 10:01

Fardin Farnezhad


1 Answers

CollectionView.GetVisualTreeDescendants()

like image 192
planeman16 Avatar answered Jan 24 '26 22:01

planeman16



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!