title: Referencing MainWindow's content in MaterialDesign's DialogHost
body: <p>I'm developing a WPF application using Material Design in XAML library. I'd like to use a dialog box to display error messages. In the documentation I've read that in order to dimm and disable content behind the dialog box I have to put it in the DialogHost tag, right after DialogHost.DialogContent</p>
  
  <p>This is what I have right now:</p>
  
  <pre><code>&lt;Window&gt;
      &lt;md:DialogHost&gt;
          &lt;md:DialogHost.DialogContent&gt;
              Content of my dialog box
          &lt;/md:DialogHost.DialogContent&gt;
  
      My window's content wrapped in grid.
  
      &lt;/md:DialogHost&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>The problem is: I'm planning to add few more dialog boxes for different purposes and I don't really know how to do that, since I have to put the rest of the code inside the DialogHost tag, which in my opinion would be a bit messy.</p>
  
  <p>Instead I would like to achieve something like this:</p>
  
  <pre><code>&lt;Window&gt;
      &lt;Grid&gt;
          &lt;md:DialogHost&gt;
              &lt;md:DialogHost.DialogContent&gt;
                  Content of my dialog box
              &lt;/md:DialogHost.DialogContent&gt;
  
          Reference somehow the rest of the window's content
  
          &lt;/md:DialogHost&gt;
  
          Window's content
  
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>I tried using ContentPresenter but I'm getting error saying that the property Content cannot be bound to visual element.</p>
  
  <p>If the idea described above is impossible to do, how can I use more than 1 dialog boxes? Because nesting one in another would result in a big messy code.</p>