title: Add multiple views inside a view using WPF and Caliburn.Micro
body: <p>I'm trying to learn using Caliburn.Micro with WPF. How can I add multiple views inside a view?</p>
  
  <pre><code>&lt;Window x:Class="ProjectName.Views.MainView"
           ...&gt;
  &lt;Grid&gt;
          &lt;views:MyControlView  /&gt;
  &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Another view, with viewmodel: MyControlViewModel</p>
  
  <pre><code>&lt;UserControl x:Class="ProjectName.Views.MyControlView"
           ...&gt;
  &lt;Grid&gt;
      ...
  &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>If i just add the view, it won't detect that it has a viewmodel with the appropriate name. How can i bind this to it?</p>
  
  <p>I have tried out with different bootstrappers and using something like cal:Bind.Model="path/classname/merge of the two". Have tried to add that to the mainview and to the usercontrol (MyControlView). I'm VERY grateful for any help regarding this matter. I'm pretty much stuck, and I really want to use Caliburn.Micro :)</p>
  
  <p>Best Regards,
  diamondfish</p>
  
  <p>Edit: I still can't get it to work, the problem seems to be in the bootstrapper or something else. But just to clarify, here is my code I'm running for a testproject.</p>
  
  <p>MainView xaml:</p>
  
  <pre><code>&lt;Window x:Class="Test.Views.MainView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
      xmlns:views="clr-namespace:Test.Views"
      Title="MainWindow" Height="360" Width="640"&gt;
  &lt;Grid&gt;
      &lt;views:MyControlView /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>MainViewModel code:</p>
  
  <pre><code>public partial class MainViewModel : PropertyChangedBase
  {
  }
  </code></pre>
  
  <p>MyControlView xaml:</p>
  
  <pre><code>&lt;UserControl x:Class="Test.Views.MyControlView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
           cal:Bind.Model="Test.MyControlViewModel"
           mc:Ignorable="d" 
           d:DesignHeight="300" d:DesignWidth="300"&gt;
  &lt;Grid&gt;
      &lt;TextBlock Text="{Binding MyProp}"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>MyControlView code:</p>
  
  <pre><code>public class MyControlViewModel : PropertyChangedBase
  {
      public string MyProp
      {
          get { return "Working"; }
      }
  }
  </code></pre>
  
  <p>Screenshot of the error: <a href="http://clip2net.com/s/1gtgt" rel="noreferrer">http://clip2net.com/s/1gtgt</a></p>
  
  <p>I have tried</p>
  
  <pre><code>cal:Bind.Model="Test.ViewModels.MyControlViewModel" 
  </code></pre>
  
  <p>as well. Also tried the cal-reference:</p>
  
  <pre><code>xmlns:cal="http://www.caliburnproject.org"
  </code></pre>
  
  <p>Screenshot of my project <a href="http://clip2net.com/s/1gthM" rel="noreferrer">http://clip2net.com/s/1gthM</a></p>
  
  <p>Since the documentation mostly is for silverlight and sometimes is for Caliburn and not CM, I might have implemented the bootstrapper wrong. For this test-project, it's just like this: (with the .xaml-change in App.xaml)</p>
  
  <pre><code>public class BootStrapper : Bootstrapper&lt;MainViewModel&gt;
  {
  }
  </code></pre>
  
  <p>Please help me out here! It seems like it is some basic stuff I'm missing :)</p>