title: Dragging over a tab to bring to front
body: <p>I'm dragging data from outside my application onto a TabControl. I'd like to be able to drag over a "tab" and have that tab brought to the front. The drag events on the TabControl and the TabItems only seem to fire for the active tab, and only fire when dragging over the tab content, not the "tab" itself.</p>
  
  <p><img src="https://i.stack.imgur.com/2NZCM.png" alt="Drag to tab"></p>
  
  <p>The markup for the control is:</p>
  
  <pre><code>&lt;Window
      x:Class="DragOverTabExample.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow"
      Height="350"
      Width="525"&gt;
      &lt;TabControl
          HorizontalAlignment="Stretch"
          VerticalAlignment="Stretch"&gt;
          &lt;TabItem
              Header="Tab A"&gt;
              &lt;TextBlock&gt;Tab A&lt;/TextBlock&gt;
          &lt;/TabItem&gt;
          &lt;TabItem
              Header="Tab B"&gt;
              &lt;TextBlock&gt;Tab B&lt;/TextBlock&gt;
          &lt;/TabItem&gt;
      &lt;/TabControl&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>I've tried adding behaviours to both the TabControl and the individual TabItems, below, attaching to the DragOver and DragEnter events, but as mentioned above, none seem to fire whilst dragging over the tab itself.</p>
  
  <pre><code>namespace Sample
  {
      public class ActivateOnDragOverBehaviour : Behavior&lt;TabControl&gt;
      {
          protected override void OnAttached()
          {
              AssociatedObject.DragOver += ActivateTab;
          }
  
          private void ActivateTab(object sender, DragEventArgs e)
          {
              // Bring hovered tab to front
          }
      }
  }
  </code></pre>