title: Efficiently display text on image in WPF?
body: <p>How to display text on an image, so it should always visible (because the image colors are mixed and unpredictable)?</p>
  
  <p>I thought about two options:</p>
  
  <ol>
  <li>Making the text border in white while the text itself will be black</li>
  <li>Having the text displayed negatively to the picture</li>
  </ol>
  
  <p>The 1st option would be preferred since it looks more solid.</p>
  
  <p>Embedding the text is simple:</p>
  
  <pre><code>&lt;Grid&gt;
    &lt;Image Source="{Binding ImageLink}" Width="110" /&gt;
    &lt;TextBlock Text="{Binding Description}" 
      HorizontalAlignment="Center" 
      VerticalAlignment="Center" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Update on <a href="https://stackoverflow.com/questions/7888231/efficiently-display-text-on-image-in-wpf/7888677#7888677">answer</a>:</p>
  
  <p>Sounds like a great idea except it doesn't work.</p>
  
  <p>I tried your code, and here are the results:</p>
  
  <p><img src="https://i.stack.imgur.com/ruLTl.png" alt="enter image description here"></p>
  
  <p>The left image is when I set the <code>Color</code> property to <code>White</code> and <code>ShadowDepth</code> to <code>10</code>.</p>