Wait for viewmodelcreation

Topics: Questions
Sep 10, 2013 at 9:46 AM
Edited Sep 10, 2013 at 9: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.
Sep 10, 2013 at 4: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.