title: Time Delay on Trigger
body: <p>I wish to attach a time delay to a mouseover event on a WPF expander I have on my form (xaml supported by VB.NET code behind). This mouseover event essentially triggers the expansion as oppose to clicking - but I'd like a short wait before the content is expanded. So far I have not managed to find anything to solve this via the wider internet. </p>
  
  <p>The current xaml code to enable the trigger is:</p>
  
  <pre><code>    &lt;Style x:Key="HoverExpander" TargetType="{x:Type Expander}"&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                  &lt;Setter Property="IsExpanded" Value="True" /&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>This style is then applied to:</p>
  
  <pre><code>&lt;Expander Style="{StaticResource HoverExpander}" 
            HorizontalAlignment="Right"
            ExpandDirection="Left" 
            Height="Auto" 
            Width="Auto"&gt;
             &lt;!-- Content here --&gt;
  &lt;/Expander&gt;
  </code></pre>
  
  <p>Note that I've stripped out other aesthetics (such as borders, gridrefs etc for readability).</p>
  
  <p>I think there should be some way to set a delay on the MouseOver Trigger but haven't had much luck finding it. This could either be set in xaml or perhaps as an event in the code behind.</p>
  
  <p>I'm working on this currently, so when I find a solution I shall post it here. Grateful for any ideas meantime. Thanks!</p>