Good afternoon, thank you in advance for the help.
My question is, how can I use a storyboard in other controls since when I create it it is associated with a specific control in the Storyboard.TargetName, in my application wpf is linked to one image (image1) and when I try to use it in another image (image2) always returns to the initial reference. this is the storyboard code and vb
<Storyboard x:Key="efectoAumento">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="imgIcono">
<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
<EasingDoubleKeyFrame x:Name="easingDoubleKeyFrame" KeyTime="0:0:1" Value="1.514"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="imgIcono">
<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.514"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="efectoNormal">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="imgIcono">
<EasingDoubleKeyFrame KeyTime="0" Value="1.514"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="imgIcono">
<EasingDoubleKeyFrame KeyTime="0" Value="1.514"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>' Private Sub EfectoHover(sender As Object, e As MouseEventArgs)
Dim efecto As Storyboard = Resources("efectoAumento")
efecto.Begin(Me)
End Sub
Private Sub EfectoNormal(sender As Object, e As MouseEventArgs)
Dim efecto As Storyboard = Resources("efectoNormal")
efecto.Begin(Me)
End Sub'