2010-12-27 13 views
1

で作成されたアニメーション表示ListBoxItemsは、私がこのXAML持っている:C#のWindowsの携帯電話7:DataTemplateを

<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> 

を、私は、各項目の平面投影をアニメーション化したいと思います。何をしますか?

ありがとうございます!

答えて

0

これには2通りの対応方法があります。

  1. Expression Blendを使用してストーリーボードを作成し、適切なトリガーでストーリーボードを呼び出します。 または
  2. ストーリーボードのインスタンスを作成し、そのアイテムの(UIElement.Projection)。(RotationX)プロパティをターゲットにすることができます。うまく


+0

はいしかし、私はこのケースでは、私のwrappanelの平面投影properyにアクセスできますか? – Richard

+0

これは私がやる方法です。 – kanchirk

関連する問題