When I run animation in wpf using the storyboard, I get the following error in the output window.
System.Windows.Media.Animation Warning: 6: The action could not be completed because the specified Storyboard was never applied to this object for interactive control; Action = "Stop"; StoryBoard = 'System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode = '57850459'; Storyboard.Type = 'System.Windows.Media.Animation.Storyboard'; TargetElement = 'System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode = '57850459'; TargetElement.Type = 'System.Windows.Media.Animation.Storyboard'
Can someone tell me how this will affect my program and how to remove it?
I did not define the storyboard in the .xaml file. But when the code behind the project file (.xaml), I created a private table in the class, and I assign it to the framework element using the following syntax in the code.
this.storyboard1.Begin(this.viewbox1, true);
where storyboard1 is the object I created in the class, and viewbox1 is the element to which I want to apply this animation.
Can someone help me? Thanks in advance.
source
share