I wished to make a loop for the Storyboard I made in XAML from c#.
void controlStoryboard()
{
for (int x= 0; x!=3; x++)
{
Storyboard xStart =(Storyboard)this.Resources[“storyboard1”];
xStart.RepeatBehavior = new RepeatBehavior(3);
textBlock.BeginStoryboard(xStart);
}
}
storyboard1 is the name of the Storyboard. Its not kinda working with me. I’d be glad if anyone can help. Thank you in advance.