Hey guys,
Been having this issue for a while now and it is really bugging me and the users are complaining.
I have a page with a view model using MVVM.
The page is basically a decently sized form with 20ish fields which bind to about 50 property getters.
The issue we are facing is that when navigating to this page it takes 1-2 seconds to load on the laptop and 3-4 seconds on the tablets they are using.
If the base.datacontext is not set to the viewmodel then obviously its really fast as the properties don't fire.
Is there any way to force the page to first display and only then start the property binding ? basically delay the binding..
or maybe bind to some kind of an event that runs after the page is already displaying to the user and then set base.datacontext? that way the user doesn't have to wait as much..
We tried putting some kind of a loading indicator but it seems that nothing in the UI will run until the request page is 100% done displaying.. setting the data context in a background thread does not help either
Is there maybe some kind of a async notify property class?
Any tips or hints would be greatly appreciated