Thanks for the reply. I looked at the buildup examples and they show the code starting with myContainer. Thats turning out to be the rub. I can create a new instance of the UnityContainer. but I really need to get to the instance of the
container that was created Bootstrapper.
So maybe this is a better way to phrase my problem. I have a control that I am binding in datagrid. I need to wire this control to the event aggregator to subscribe to some events. As from the earlier discussion, I can not use the dependency
injection as the XAML needs an empty constructor. So from inside this constructor, how would it be possible to reference to the EventAggregator?
OK, the lights came on I have a most simple solution for this. In the bootstrapper, I add the Container object and the EventAggregator object to the Application.Current.Resources and then in the constructor of my bound control I now have the references.
While I really like DI, it did put on the blinders as this solution did not occur to me sooner.
Take care and thanks again.