【发布时间】:2013-11-30 07:38:48
【问题描述】:
我使用表达式混合为名为“rect”的矩形创建了这个小动画
<Storyboard x:Name="flipanim">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="rect">
<EasingDoubleKeyFrame KeyTime="0" Value="90"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
现在我想为运行时加载的每个列表框项(使用 itemtemplate 生成)显示此动画,如何设置列表项的动画属性。如何为列表项指定 TargetName 属性?
如果那不可能,那么我想知道如何在 C# 中转换上述代码。
【问题讨论】:
标签: c# xaml windows-phone-7 animation windows-phone-8