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 :
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
Le problème est que la méthode begin attend un paramètre et je ne sais pas quoi lui passer.

Pourriez vous m'expliquer cela ?
Merci d'avance
Finality