most of them are working fine, except the combobox itemssource binding on the dataform.
I'm setting up the binding dynamically (not through xaml) for the dataform, i have a little fluent interface for creating and binding dataform. So, when i set the binding of itemssource of a combobox, i have to set the source of the binding explicitly, to
bridge the visual tree. So my binding would look something like this
Binding binding = new Binding();
binding.Source = myView;
binding.Path = new PropertyPath("DataContext.ComboBoxList");
But from what i gathered, same problem shows up when using elementname and path. DataContext inheriting is not working here.
So if i set it up like this, it works only if myView contains the VM inside datacontext. I prefer this approach opposed to the other approaches you listed in the discussion here:
I even reported that option nr. 3 works for me:) It's clean and simple, it's just you have to find the location of VM, and it's kinda hard to pinpoint it when you have a childwindow dynamically created containing the VM:)
As i said, if i got it all wrong i'd gladly hear about other options, but i still feel that childwindow holding the VM is a bit incosistent.