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

How to refresh page from view model after navigating to it via PopAsync

$
0
0

We are currently testing Xamarin.Forms as an app development platform in our company. While trying to port our desktop app to Xamarin.Forms we encountered an issue. It seems that X.F is not updating pages according to view model changes when we navigate to them with the PopAsync method.

What we are actually doing is: We navigate to a page with a ListView via PushAsync, navigate further to a page for filtering the ListView via PushAsync and after entering the filter criteria navigate back to the page with the ListView via PopAsync but the ListView isn't updating properly although the List bound to the ItemsSource of the ListView in the view model has been updated as expected.
Maybe FYI, the view model of the page with the ListView is updated before we navigate back to it. Don't know if this is worth mentioning.
If we do the same except for navigating to the page with the ListView the second time with PushAsync it works as expected, but this is obviously not what we want to do.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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