title: A tooltip or something similar move with cursor in WPF
body: <p>Is it possible to move a <code>Tooltip</code> or something like that with cursor when mouse goes on a specific control?</p>
  
  <p>I tried <code>TextBlock</code>, but <code>Margin</code> property not work.</p>
  
  <pre><code>    private TextBlock tooltip = new TextBlock();
      private void imgRoom_MouseEnter(object sender, MouseEventArgs e)
      {           
          Point position = e.GetPosition((IInputElement)sender);
          tooltip.Visibility = System.Windows.Visibility.Visible; 
          tooltip.Margin = new Thickness(position.X, position.Y, 0, 0);           
          tooltip.Width = 100;
          tooltip.Height = 100;
          tooltip.Background = new SolidColorBrush(Colors.Red);
      }
  
      private void imgRoom_MouseMove(object sender, MouseEventArgs e)
      {
          Point position = e.GetPosition((IInputElement)sender);
          tooltip.Margin = new Thickness(position.X, position.Y, 0, 0);
      }
  </code></pre>