阅读背景:

将动画和触发器定义为可重用资源?

来源:互联网 

Is there a way to define an animation somewhere in xaml (eg. as a resource) once and then reuse it multiple times? I have a lot of independent brushes across differnt datatemplates that independently need to start the same kind of animation based on a datatrigger. Now since it seems that an animation has to define an Storyboard.TargetName and Storyboard.TargetProperty. This pretty much defeats the purpose of reusability. I would somehow like to declare "use this animation form the resource but apply it to another element this time". Is there a way to define an animation somewhere




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: