Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# C windows phone 7:通过DataTemplate创建ListBoxItems动画_C#_Windows_Silverlight_Windows Phone 7 - Fatal编程技术网

C# C windows phone 7:通过DataTemplate创建ListBoxItems动画

C# C windows phone 7:通过DataTemplate创建ListBoxItems动画,c#,windows,silverlight,windows-phone-7,C#,Windows,Silverlight,Windows Phone 7,我有这个xaml: <ListBox Margin="12,0,0,0" Height="50" FontSize="30" Name="resultListBox"> <ListBox.ItemTemplate> <DataTemplate> <toolkit:WrapPanel Margin="0,0,24,0" Background="{Binding Path=background}" Orientation="Horiz

我有这个xaml:

<ListBox Margin="12,0,0,0" Height="50" FontSize="30" Name="resultListBox">
  <ListBox.ItemTemplate>
    <DataTemplate>
      <toolkit:WrapPanel Margin="0,0,24,0" Background="{Binding Path=background}" Orientation="Horizontal" HorizontalAlignment="Stretch">
        <TextBlock Margin="0,0,12,0" Width="49" Text="{Binding Path=line}" />
        <TextBlock Width="261" Text="{Binding Path=destination}" />
        <TextBlock Margin="0,0,12,0" Width="49" Text="{Binding Path=next}" />
        <TextBlock  Width="49" Text="{Binding Path=nextNext}" />
        <toolkit:WrapPanel.Projection>
          <PlaneProjection CenterOfRotationY="0.5" x:Name="WrapPanelPP{Binding Path=ID}" RotationX="-90" />
        </toolkit:WrapPanel.Projection>
      </toolkit:WrapPanel>
    </DataTemplate>
  </ListBox.ItemTemplate>
我想为每个项目的平面投影设置动画。你做什么


谢谢

有两种可能的处理方法

使用Expression Blend创建情节提要,并在适当的触发器上调用情节提要。 或 在“代码隐藏”中,您可以创建情节提要的实例,并将UIElement.Projection.RotationX属性作为项目的目标。

是的,但在这种情况下,我是否可以访问包装纸的平面投影属性?