title: Tooltip Placement - WPF
body: <p>I'm trying to put together a tool tip for a simple button. However when the mouse is hovered over the button, the tool tip does not appear below it. </p>
  
  <p>Please see this : <img src="https://i.stack.imgur.com/R95eJ.png" alt="enter image description here"></p>
  
  <p>This xaml is as below:</p>
  
  <pre><code>&lt;Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="300" Width="300"  xmlns:sys="clr-namespace:System;assembly=mscorlib"&gt;
  
      &lt;Page.Resources&gt;
  
          &lt;Style x:Key="ToolTipStyle" TargetType="{x:Type ToolTip}"&gt;
              &lt;Setter Property="OverridesDefaultStyle" Value="true" /&gt;
              &lt;Setter Property="Template"&gt;
                  &lt;Setter.Value&gt;
                      &lt;ControlTemplate TargetType="ToolTip"&gt;
                          &lt;Grid x:Name="PopupGrid"&gt;
                              &lt;Grid x:Name="ShadowBackground" Height="65" Width="260"&gt;
                                  &lt;Grid.Effect&gt;
                                      &lt;DropShadowEffect BlurRadius="7" ShadowDepth="1" Opacity="0.5" /&gt;
                                  &lt;/Grid.Effect&gt;
                                  &lt;Path Margin="0 0 50 0" Width="20" Height="10" HorizontalAlignment="Right" VerticalAlignment="Top" Data="M0,10 L10,0 20,10Z" Stroke="Gray" Fill="#EFEFF0" Stretch="None" /&gt;
                                  &lt;Border BorderThickness="1 0 1 1" CornerRadius="3" Margin="10 9 10 10" BorderBrush="Gray" Background="#EFEFF0"&gt;
                                      &lt;ContentPresenter/&gt;
                                  &lt;/Border&gt;
                                  &lt;Border BorderThickness="0 1 0 0" CornerRadius="0 0 3 0" Margin="0 9 10 0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="41" Height="10" BorderBrush="Gray" /&gt;
                                  &lt;Border BorderThickness="0 1 0 0" CornerRadius="3 0 0 0" Margin="10 9 69 0" VerticalAlignment="Top" Height="10" BorderBrush="Gray" /&gt;
  
                              &lt;/Grid&gt;                     
                          &lt;/Grid&gt;
                      &lt;/ControlTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
  
          &lt;Style x:Key="ToolTipHeaderStyle" TargetType="{x:Type Label}"&gt;
              &lt;Setter Property="FontFamily" Value="Calibri"/&gt;
              &lt;Setter Property="FontWeight" Value="Bold"/&gt;
              &lt;Setter Property="FontSize" Value="14"/&gt;
          &lt;/Style&gt;
  
          &lt;Style x:Key="ToolTipTextStyle" TargetType="{x:Type Label}"&gt;
              &lt;Setter Property="FontFamily" Value="Calibri"/&gt;
              &lt;Setter Property="FontSize" Value="12"/&gt;
          &lt;/Style&gt;
  
      &lt;/Page.Resources&gt;
  
      &lt;Grid x:Name="PopupGrid" Background="Red"&gt;
          &lt;Button Width="100" Height="30" Content="Click Me!"&gt;
              &lt;Button.ToolTip&gt;
                  &lt;ToolTip Style="{StaticResource ToolTipStyle}"&gt;
                      &lt;StackPanel Orientation="Vertical"&gt;
                          &lt;Label Content="Newly Rejected" Style="{StaticResource ToolTipHeaderStyle}"&gt;&lt;/Label&gt;
                          &lt;Label Content="Please perform requested edits and resubmit" Style="{StaticResource ToolTipTextStyle}"&gt;&lt;/Label&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ToolTip&gt;
              &lt;/Button.ToolTip&gt;
          &lt;/Button&gt;
      &lt;/Grid&gt;
  
  &lt;/Page&gt;
  </code></pre>
  
  <p>I'm not sure what is causing this behavior. Can you please help to get the placement correct?</p>
  
  <p>Forgot to mention how it should appear:</p>
  
  <p>the triangle of the tooltip should be places right below the mouse cursor, which would mean that the tooltip should move towards left.Something like this:<img src="https://i.stack.imgur.com/S2YTb.png" alt="enter image description here"></p>
  
  <p>Thanks,
  -Mike</p>