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

Need help triggering UI updates WITHOUT INotifyPropertyChanged

$
0
0

Overview
I am using Xamarin Forms and BreezeSharp. Everything works great except for one thing, something about how Breeze utilizes OnPropertyChanged events causes stack overflow exceptions specifically in regards to editing text in an entry control. This is a known issue, but to my knowledge no one has been able to find a work around. I'm in the process of finding an alternate way to achieve similar functionality.

The Current Issue
In my UI I have my controls and they are two way bound to my business object fields. When the user wants to update a field they click an edit button which takes them to the edit page, and once they've complete their edits they are returned to the previous page. The problem is that the values they change on the edit page are not updated in the UI on the readonly page (they share a ViewModel and are referencing the same business object).

Is there a way for me to, generically if possible, trigger the fields to pull in the updated value from the business object? At first I assumed if I reset the bindingcontext for the fields the new values would be pushed, but that does not seem to be the case.

I should also mention that my UI is generated dynamically, so I don't have great access to explicitly set the value in the UI without restructuring much of my previous work.

To Summarize
I have labels bound to their respective fields on a business object, but I can't use INotifyPropertyChanged to propagate changes made to the BO to the UI. Is there anything I can do or call to update the labels after changes are made to the business object without explicitly setting values in the controls.

Any help or ideas would be fantastic.

Thanks.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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