当前位置: 首页 > 编程语言 > C#

System.Windows.Media.AnimationWarnings-6share

时间:2023-04-10 13:26:26 C#

System.Windows.Media.AnimationWarnings:6当我使用故事板在wpf中运行动画时,在输出窗口中出现以下错误。System.Windows.Media.AnimationWarning:6:无法执行操作,因为指定的Storyboard从未应用于此对象进行交互控制。行动=“停止”;Storyboard='System.Windows.Media.Animation.Storyboard';Storyboard.HashCode='57850459';Storyboard.Type='System.Windows.Media.Animation.Storyboard';TargetElement='系统。Windows.Media.Animation.Storyboard';TargetElement.HashCode='57850459';TargetElement.Type='System.Windows.Media.Animation.Storyboard'谁能告诉我它将如何影响我的程序以及如何删除它?我没有在.xaml文件中定义故事板。但是当设计文件(.xaml)背后的代码在类中创建私有故事板时,我在代码中使用以下语法将其分配给框架元素。this.storyboard1.Begin(this.viewbox1,true);storyboard1是我在类中创建的对象,viewbox1是我要应用此动画的元素。谁能帮我?提前致谢。我也有此警告,但发现在开始调用中指定的“containedElement”也必须在停止调用中指定,这应该会消除警告。以上就是C#学习教程:System.Windows.Media.Animation警告:6分享的全部内容,如果对大家有用,需要详细了解C#学习教程,希望大家多多关注——这篇.storyboard1.Begin(this.viewbox1,true);this.storyboard1.Stop(this.viewbox1);本文收集自网络,不代表立场。如涉及侵权,请点击右侧联系管理员删除。如需转载请注明出处: