title: Declaring Text Decorations such as Underline, Strikethrough in a Style
body: <p>How do I include text decorations such as Underline, Strikethrough etc in a Style definition:</p>
  
  <pre><code>&lt;Style x:Key="UnderlinedLabel"&gt;
       &lt;Setter Property="Control.FontFamily" Value="Trebuchet MS" /&gt;
       &lt;Setter Property="Control.FontSize" Value="14" /&gt;
       &lt;!-- Next line fails --&gt;
       &lt;Setter Property="Control.TextDecorations" Value="Underline" /&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>I'm familiar with using the following XAML to underline text:</p>
  
  <pre><code>&lt;TextBlock&gt;
     &lt;Underline&gt;
         Underlined text
     &lt;/Underline&gt;
  &lt;/TextBlock&gt;
  </code></pre>
  
  <p>However text decoration is just another style, I want to be able to define it declaritively like FontWeight, FontSize etc.</p>
  
  <p>[Update]</p>
  
  <p>I was applying this style to a Label control.  This was my main problem.  It appears you can't underline text in a Label.  Change to a TextBlock (thanks gix) and all is well.</p>