Best approach to handle every change in a data model class #1943
Unanswered
maslewandowski
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Doing that on each propertyChanged will be really expensive, also creating json + saving it on db can be done on a backgroundThread, that way your UI will not be blocked. I recommend using the StoppedBehavior, that way you can set a delay between the fire and the execution of your code |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to save a data model object from a data model class to a json file.
This is the process:
quick nonsense example:
Main Data Model:
Sub Data Model
What is the best approach, if i want to call a method when ANYTHING changes in this example data model class structure?
Would you recommend another approach to reach my goal as described in process?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions