title: Wpf usercontrol dependency Property Binding
body: <p>In my mainwindow I have got an UserControl, which ViewModel has got the Dependency Property "Message", I'm trying to bind the Dependency Property to an Property of the ViewModel of the Main Window, but actually it isn't Working, is there any soulution or is it genarally impossible?</p>
  
  <p>Content of the Main Window:</p>
  
  <pre><code>    &lt;local:MessageLayer&gt;
          &lt;local:MessageLayer.DataContext&gt;
              &lt;local:MessageBoxViewModel Message="{Binding RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}, Path=DataContext.Message}"/&gt;
          &lt;/local:MessageLayer.DataContext&gt;
      &lt;/local:MessageLayer&gt;
  </code></pre>