Two Views, One ViewModel

Sep 15, 2011 at 10:10 PM

Pretty simple one here guys, but I'm drawing a blank. Basically I have a ViewModel, "FormViewModel", that I want to display in a List with one particular view (the thumbnail version of the View). Bound to another area of the UI is the selected "FormViewModel" that I want caliburn to locate another view for (the form designer version of the View).

The basic question is, through convention and or the ViewLocator can I tell caliburn to bind to one view over another on the same ViewModel?

Thanks for any input, I'll be glad to clarify if needed.

Sep 15, 2011 at 10:41 PM

You need to look into the View.Context attached property. You can read about it here:

Sep 16, 2011 at 4:00 PM

Oh that's perfect, I just wired it up. Thanks for the quick reply!