title: WPF - Setting ToolTip MaxWidth
body: <p>I would like to set ToolTip maxwidth property to show long texts properly. In addition I need text wrapping. I used this style:</p>
  
  <pre><code>&lt;Style TargetType="ToolTip"&gt;
          &lt;Setter Property="ContentTemplate"&gt;
              &lt;Setter.Value&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel&gt;
                          &lt;TextBlock Text="{Binding}"  MaxWidth="400" TextWrapping='Wrap' /&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>This tooltip style is OK for my purpose. However, it is not effective for some controls which has own tooltip style. For example, tooltip of following button can not appear.</p>
  
  <pre><code>&lt;Button&gt;
      &lt;Button.ToolTip&gt;
          &lt;StackPanel&gt;
              &lt;TextBlock Style="{StaticResource firstText}" Text="aaaaaaaaaaaaa"/&gt;
              &lt;TextBlock Style="{StaticResource secondText}" Text="bbbbbbbbbbbbb"/&gt;    
              &lt;TextBlock Bacground="Red" Text="ccccccccccccc"/&gt;    
          &lt;/StackPanel&gt;
      &lt;/Button.ToolTip&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>I want to set maxwidth property with text wrapping for <strong>all tooltips</strong>. What can i do for this issue? </p>