Binding a view to two different view models

Topics: Conventions
Sep 20, 2012 at 5:53 PM
Edited Sep 20, 2012 at 6:26 PM

In my project I have Quotes and Orders which inherit from an abstract Job class. I have the following  directory structure in my WPF project:

 

Quotes

Views

QuoteView.xaml

ViewModels

QuoteViewModel.cs

 

And the same for Orders with the obvious changes.  

As you might expect parts of the GUI could be put into UserControls and shared via ContentControls, something along the lines of TaxEntry, for example.

In the past I've successfully bound views to different view models but they were in the same namespace.

I can't figure out how to setup the user control's namespaces/locations and the binding for the ContentControls.  Can anyone shed some light?

 

Thanks,

Jason