I have made an animation in a xaml.cs file:
((Storyboard)FindResource("animate")).Begin(CurrentMatchLBLProgress);
But if I copy this and take it to the ViewModel, I get an error:
The name 'FindResource' does not exist in the current context.
How do I make this line of code work from the ViewModel?