title: Emoticons in TextBlock in WPF application
body: <p>I want to add emoticons to WPF chat application. I know that wpf don't supports emoticons for that reason I am replacing emoticons with image. I am using inline property of textBlock to add images to textBlock but, I having problem with alignment of images. I am not able to make emoticon images to get properly aligned. I am sharing a screenshot of how it is looking.</p>
  
  <p><a href="https://i.stack.imgur.com/9hKjQ.png" rel="nofollow noreferrer">Screenshot of app window</a></p>
  
  <p><a href="https://i.stack.imgur.com/mobwT.png" rel="nofollow noreferrer">This is how emoticon is looking</a></p>
  
  <p>the example is just a demo where I am adding elements in constructor only to see how it will look. I am sharing my code as well.</p>
  
  <pre><code>        @out.Inlines.Add(new Run("Hii, my name is Ajay!!"));
          Image emo = new Image();
          emo.Height = 15;
          emo.Width = 15;
          emo.VerticalAlignment = VerticalAlignment.Bottom;
          emo.Margin = new Thickness(3, 0, 0, 0);
          emo.Source = new BitmapImage(new Uri(@"C:\Users\admin\Desktop\test1.jpg", UriKind.RelativeOrAbsolute));
       // InlineUIContainer container = new InlineUIContainer(emo);
          @out.Inlines.Add(emo);
  </code></pre>
  
  <p>Is there any way I can make emoticon image properly align? Is it OK to use textblock or I should use any other control for this?</p>
  
  <p>Any help is highly appreciated.</p>