title: Setting XAML property value to user control
body: <p>I have a user control in WPF which i want the text of one of it's labels to be read from the XAML where it is used. Hence..</p>
  
  <p>My User Control:</p>
  
  <pre><code> &lt;UserControl x:Class="muc"&gt;
          &lt;Label Foreground="#FF7800" FontSize="20" FontWeight="Bold"&gt;          
               &lt;Label.Content&gt;
                  &lt;Binding ElementName="TestName" Path="." /&gt;
               &lt;/Label.Content&gt;
          &lt;/Label&gt;
   &lt;/UserControl&gt;
  </code></pre>
  
  <p>Then using it:</p>
  
  <pre><code> &lt;mycontorls:muc TestName="This is a test" /&gt;
  </code></pre>
  
  <p>But it doesn't works ...
  How can i read the properties ?</p>