title: WPF Animation execute twice
body: <p>I faced an issue regarding the Animation execute twice, please check the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;Grid&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="Auto"/&gt;
              &lt;ColumnDefinition Width="*"/&gt;
              &lt;ColumnDefinition Width="Auto"/&gt;
          &lt;/Grid.ColumnDefinitions&gt;
  
          &lt;ListView x:Name="lstHandled" Grid.Column="0" Visibility="Visible"&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListViewItem&gt;Jimmy&lt;/ListViewItem&gt;
              &lt;ListView.Triggers&gt;
                  &lt;EventTrigger RoutedEvent="ListView.MouseEnter"&gt;
                      &lt;BeginStoryboard&gt;
                          &lt;Storyboard&gt;
                              &lt;ThicknessAnimation
                                  Storyboard.TargetName="spAll"
                                  Storyboard.TargetProperty="(StackPanel.Margin)"
                                  From="-100,0,0,0" To="0,0,0,0"
                                  AutoReverse="False"
                                  Duration="0:0:1"/&gt;
                          &lt;/Storyboard&gt;
                      &lt;/BeginStoryboard&gt;
                  &lt;/EventTrigger&gt;
              &lt;/ListView.Triggers&gt;
          &lt;/ListView&gt;
  
          &lt;StackPanel x:Name="spAll" Grid.Column="0" Width="100" Margin="-100,0,0,0" Orientation="Horizontal"&gt;
              &lt;ListView x:Name="Handled"&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;Hello&lt;/ListViewItem&gt;
              &lt;/ListView&gt;
              &lt;ListView x:Name="UnHandled"&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;World&lt;/ListViewItem&gt;
              &lt;/ListView&gt;
              &lt;StackPanel.Triggers&gt;
                  &lt;EventTrigger RoutedEvent="StackPanel.MouseLeave"&gt;
                      &lt;BeginStoryboard&gt;
                          &lt;Storyboard&gt;
                              &lt;ThicknessAnimation
                                  Storyboard.TargetName="spAll"
                                  Storyboard.TargetProperty="(StackPanel.Margin)"
                                  From="0,0,0,0" To="-100,0,0,0"
                                  AutoReverse="False"
                                  Duration="0:0:1"/&gt;
                              
                          &lt;/Storyboard&gt;
                      &lt;/BeginStoryboard&gt;
                  &lt;/EventTrigger&gt;
              &lt;/StackPanel.Triggers&gt;
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When the mouse leave the "spAll" StackPanel. It fired the Mouse Enter event for the ListView. How to avoid this issue? </p>
  
  <p>Thanks a lot!</p>