Some Animation about Scroller in MCE

来源:互联网 发布:婚礼视频剪辑软件 编辑:程序博客网 时间:2024/05/16 02:15

 This Blog is from my MSN Space, written on 2008/01/09,

 

Yesterday, I post a topic in Media Center Sandbox discuss forum.

Some expert gives me reply, it's useful. so i make a record here for the future use.

the topic is:Animation about the "edit program libaray" scroller in MCE (you can read the orignal here)

The Reply is :

Hi

to get this effect - you need to assign an Animation of type 'move' to the repeater which holds the list items.
The example below will apply an animation that takes 0.3 seconds to smoothly scroll the listitems (using the 'EaseIn' interpolation effect).  Also important - the 'RelativeTo' attribute is also given values of Current and Final (so we don't have to worry about what the real position is).

  <Repeater .. ..>
   <Animations>
     <Animation Type="Move">
    <Keyframes>
      <PositionKeyframe Time="0.0" Value="0,0,0" RelativeTo="Current"/>
      <PositionKeyframe Time="0.3" Value="0,0,0" RelativeTo="Final" Interpolation="EaseIn" />
    </Keyframes>
  </Animation>
</Animations>
</Repeater>

Niall

Thanks Niall a Lot!