title: WPF Set Window Title from Child
body: <p>If I have a <code>UserControl</code> hosted in a <code>Window</code> that looks like:</p>
  
  <pre><code>&lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  &gt;
      &lt;Grid&gt;
          &lt;ContentPresenter Content="{Binding}" /&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>How do I set the <code>Window.Title</code> from the <code>UserControl</code>? </p>
  
  <p>An additional requirement is that the <code>UserControl</code> can pull and set the window title from a static resx file such, i.e. <code>{x:Static p:Resources.MyViewTitle}</code></p>
  
  <p><strong>Edit</strong></p>
  
  <p>After doing some more research, I think Attached Properties might be the answer. How might I go about implementing a <code>Window.Title</code> property that I can place on any child <code>UserControl</code>, allowing me to set the <code>Window</code> title?</p>