title: Add controls into textblock wpf in code behind
body: <p>How can i convert this UI into code behind wpf</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;TextBlock x:Name="tblImgCorrectAnswer"&gt;
    &lt;Span&gt;Hello&lt;/Span&gt;
    &lt;Span Style="{DynamicResource FontMSMincho}"&gt;て&lt;/Span&gt;
    &lt;InlineUIContainer BaselineAlignment="Center"&gt;
      &lt;TextBlock&gt;
        &lt;Image Source="Images/icon.ico" Width="40" Height="40"/&gt;
      &lt;/TextBlock&gt;
    &lt;/InlineUIContainer&gt;
  
  &lt;/TextBlock&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I cann't anyway to add item control into textblock control or TextBlock control into InlineUIContainer control by using code-behind.</p>
  
  <p>Thanhks.</p>
  
  <p>The result like <a href="http://i.stack.imgur.com/wnNcI.png" rel="nofollow">This</a></p>