Bonjour tout le monde,
depuis ce matin, j'essaie d'appliquer une animation à un de mes contrôles, pour un certain évènement donné.
Voilà le code que j'utilise :
Le problème est que la méthode begin attend un paramètre et je ne sais pas quoi lui passer.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Private Sub Anim(ByVal sender As Object, .....) Dim STB As Storyboard = New Storyboard Dim Anim As DoubleAnimation = New DoubleAnimation Storyboard.SetTargetProperty(Anim, New PropertyPath(OpacityProperty) Storyboard.SetTargetName(xAnim, sender/toString) Anim.To = 0 STB.Children.Add(Anim) STB.Begin() End Sub
Pourriez vous m'expliquer cela ?
Merci d'avance
Finality
Partager