Creating a ViewModel : do it before or after model data is available?
- by Schneider
I have a WPF application that loads data from a data source.
Until some data is loaded there is nothing to display.
My question is do I:
Create both V and VM before any data is available; set the data in the VM once available
Create only V at the start; wait until data available then create the VM injecting the data
Create both V and VM only once data available