I have
Dim ScaleUpY As New DoubleAnimation() Dim ScaleUpX As New DoubleAnimation() ScaleUpY.Duration = New Duration(TimeSpan.FromSeconds(0.2)) ScaleUpX.Duration = New Duration(TimeSpan.FromSeconds(0.2))
ScaleUpY.To = 154 'in pixels
ScaleUpX.To = 110 'in pixels
imge.BeginAnimation(Image.HeightProperty, ScaleUpY)
imge.BeginAnimation(Image.WidthProperty, ScaleUpX)
Instead of this, I want something like:
Dim ScaleUp As New ScaleTransform() ScaleUp.Duration = New Duration(TimeSpan.FromSeconds(0.2)) ScaleY.To = 1.5 'in ratio ScaleX.To = 1.5 'in ratio imge.BeginAnimation(Image.RenderTransformProperty, ScaleUp)
The aim is to reduce two animation to one for a single effect. But I don't know the correct expression for this.