Convention based binding with UserControls

Topics: Conventions
Dec 1, 2012 at 3:49 PM

Synopsis: I have two user controls, I want one to be displayed inside another.  It works as I want if in my XAML I have:

<UserControl x:Name="PropertyIWantToBindTo>

But if I have

 <local:MyView  x:Name="PropertyIWantToBindTo>

I figured out how to get it to work from Rob's article on "the ultimate convention" at http://cocktail.ideablade.com/composing-view-models/

So now that I changed it to a UserControl, it works fine. My question is - am I now doing it the "right"/idiomatic way?  What would be the alternative, could I explicitly tell Caliburn that MyView should be bound to  a certain ViewModel?  If so, is there any common scenario where you do that?