title: How can I make a hover info bubble appear on mouseover in WPF?
body: <p>I want to make <strong>bubble of text</strong> appear when the mouse is over a <strong>TextBlock</strong>.</p>
  
  <p>The <strong>following code</strong> is the closest I can get but it just injects text into TextBox.Text itself and changes the color. I want to have a e.g. Border/StackPanel/TextBlock above the original textblock <strong>floating on a different layer</strong> during mouseover.</p>
  
  <p><strong>How can I make a hover panel similar to a web experience with the <a href="http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_acronym_test" rel="noreferrer">acronym tag</a>?</strong></p>
  
  <pre><code>using System.Windows;
  using System.Windows.Controls;
  using System.Windows.Input;
  using System.Windows.Media;
  
  namespace TestHover29282
  {
      public partial class Window1 : Window
      {
          public Window1()
          {
              InitializeComponent();
  
              TextBlock tb = new TextBlock();
              tb.Text = "test";
  
              tb.MouseEnter += new MouseEventHandler(tb_MouseEnter);
              tb.MouseLeave += new MouseEventHandler(tb_MouseLeave);
  
              MainStackPanel.Children.Add(tb); 
          }
  
          void tb_MouseLeave(object sender, MouseEventArgs e)
          {
              TextBlock tb = sender as TextBlock;
              tb.Background = new SolidColorBrush(Colors.Transparent);
              tb.Text = "test";
          }
  
          void tb_MouseEnter(object sender, MouseEventArgs e)
          {
              TextBlock tb = sender as TextBlock;
              tb.Background = new SolidColorBrush(Colors.Orange);
              tb.Text += " - this should be in a popup bubble.";
          }
  
      }
  }
  </code></pre>