I'm gonna pause a Storyboard in WPF, so I've used below code :
Storyboard TheStoryboard;
//Constructor
public window
{
TheStoryboard = (Storyboard)this.FindResource("TheStoryboardName");
}
private void MenuItemPause_Click(object sender, RoutedEventArgs e)
{
TheStoryboard.Pause();
}
But nothing happen!
What is the right way to do that ?