views:

1660

answers:

1

I have a child window that contains a DataForm. In the DataForm there is a combobox. I have a DataContext set on the parent window that is opening the child window. Before I open the child window, I set the myChildWindow.DataContext = myGlobalDataContext.

I have the ComboBox ItemsSource={Binding Path=MyCollectionInMyGlobalDataContext}

If I put the combobox outside of the dataform on the child window, it populates with data, once I move it inside of the data form, it does not bind to the "MyCollection" collection on the DataContext.

Any thoughts?

A: 

You have probably found the answer by now, but just in case it is probably because the CurrentItem property of the dataform is not set

Mike Hanson