title: WPF Event Trigger Change Other UI element
body: <p>I defined <code>ListBox</code> in my XAML which uses <code>ItemTemplate</code>.
  Inside the <code>ItemTemplate</code> I placed Image.</p>
  
  <pre><code>&lt;ListBox.ItemTemplate&gt;
  &lt;ListBox.ItemsPanel&gt;
   &lt;ItemsPanelTemplate&gt;
    &lt;WrapPanel x:Name="itmTempPanel" IsItemsHost="True" ItemWidth="60" ItemHeight="60" Width="{Binding ElementName=lstFilesDropped, Path=Width}"/&gt;
   &lt;/ItemsPanelTemplate&gt;
  &lt;/ListBox.ItemsPanel&gt;
  ...
  &lt;Image&gt;
   &lt;Image.Triggers&gt;
    &lt;EventTrigger RoutedEvent="MouseEnter"&gt;
     &lt;BeginStoryboard&gt;
      &lt;Storyboard&gt;
       &lt;DoubleAnimation Storyboard.TargetProperty="Height" To="71" Duration="0:0:0.3" /&gt;
       &lt;DoubleAnimation Storyboard.TargetName="itmTempPanel" Storyboard.TargetProperty="Height" To="71"      Duration="0:0:0.3" /&gt;
      &lt;/Storyboard&gt;
     &lt;/BeginStoryboard&gt;
    &lt;/EventTrigger&gt;
   &lt;/Image.Triggers&gt;
  &lt;/Image&gt;
  &lt;/ListBox.ItemTemplate&gt;
  </code></pre>
  
  <p>When the mouse enter the image I want to begin storyboard on that image height <strong>and</strong> on the <code>WrapPanel</code> which I defined inside the <code>ItemsPanelTemplate</code>.</p>
  
  <p>When the mouse enter to this image I got the following exception:
  "'itmTempPanel' name cannot be found in the name scope of 'System.Windows.Controls.Image'."</p>
  
  <p>How can I change other element property from element that begin the storyboard.</p>
  
  <p>Thank you for your help !!</p>