I have the following setup.
Case (object of type Case)
---> GetRecipients() (returns a List<Recipient>
---> GetACWM() (returns one object of type ACWM)
I have an ItemsControl that I am binding to Case (working fine), the DataTemplate for Case has an ItemsControl that I am binding to the GetRecipients() method (also working fine). This bind is working because I set the ObjectInstance of my ObjectDataProvider (for Case) in the code behind when the case is provided. I cannot do the same things for recipient because there are multiple recipients in a case. So, in the recipient DataTemplate I have an ObjectDataProvider (for Recipient). How can I set the ObjectInstance of this ODP to the current recipient being bound?
I hope this was clear enough.