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

How to refresh the BindingContext of a page after a child page is popped off the stack.

$
0
0

Hi all,

I'm implementing an MVVM solution and for the requirements of the solution I need to share a portion of the view model on multiple screens.

As I add new NavigationPages onto the stack, all the GUI bindings of the model are correct. As I make changes on the active pages, those changes do not get reflected in the pages at the bottom of the stack. I am using static variables for the pieces that are shared.

My inclination is that the lower pages of the stack do not catch the property changed event since it is waiting to be executed again. Is there a way to force a refresh of the ContextBinding?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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