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

OnAppearing not working as expected?

$
0
0

Hi all,

I have an app that has a bunch of venues stored in an ObservableCollection. This collection gets updated based on user searches/filters. Originally, I had an event handler that watched this collection, and when it changed, it would re-init my map and pins. But this would happen for every item I added and I noticed a heap of map redraws when adding 50 venues to this collection. Not ideal.

So I went down another route, and tried to show a pop up page that would reset the collection based on the users search, then disappear. I would have thought that since the map was behind this page, the OnAppearing method would fire, but it doesn't.

Anyone solved a problem like this before? Any advice would be greatly welcomed :)

Cheers!


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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