Wait for viewmodelcreation

Topics: Questions
Sep 10, 2013 at 10:46 AM
Edited Sep 10, 2013 at 10:52 AM
In an command I send an message to show an view (catel:usercontrol). The Viewmodel is generated automaticaly.
In the command I also try to send an message to change an property in the new generated viewmodel.

The problem. If I send the message to early the viewmodel is not crated yet an it can't receive the message.
Coordinator
Sep 10, 2013 at 5:46 PM
Good question. I think the ViewModelFactory is a good fit for this. Or the auditor, which also provides events for you to intercept.