I created an animation storyboard in xaml file. That story board begins on Button.Click. But to stop the animation I am trying to stop storyboard on my custom event in code
I solve the problem with using the Stop() method of Storyboard class like this
Stop()
myStoryBoard.Stop(this.LayoutRoot);
with this solution you don't have to declare Storyboard at the resource.