Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

ForceUpdateSize slows UI

$
0
0

Hi!

I have this strange issue, i have a ViewCell inside a ListView that expands when you tap inside, calling cell.ForceUpdateSize() , this works OK, but if you it repeated times (say, like 3 or 4 times) it starts to get slower every time, until it stops working (freezes)

 void Cell_OnTapped(object sender)
        {
            var cell = sender as InventoryCell;
            cell.Height = cell.Height == 40 ? cell.Height + 30 : cell.Height = 40;
            cell.ForceUpdateSize();

        }

Any info about it?... btw, using XF on iOS


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>