2014-03-06 33 views
1

有沒有辦法在「AutoReverse」激活之前暫停動畫? 我有了這個故事板:「AutoReverse」激活前的Windows Phone 7.5延遲動畫

<Storyboard x:Name="showMoreBox" AutoReverse="False" RepeatBehavior="1x" Completed="showMoreBox_Completed" FillBehavior="HoldEnd"> 
              <DoubleAnimation Duration="00:00:0.7" 
                Storyboard.TargetName="showMore" 
                Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" 
                From="280" To="0"> 
               <DoubleAnimation.EasingFunction> 
                <CubicEase EasingMode="EaseOut"/> 
               </DoubleAnimation.EasingFunction> 
              </DoubleAnimation> 
             </Storyboard> 

如果我不能,我怎麼能實現在面板中的幻燈片將在滑回之前延遲了幾秒鐘?

回答

1

你可以動畫添加到您的故事板,什麼也不做的時間所需的量:

<Storyboard x:Name="showMoreBox" AutoReverse="True" RepeatBehavior="1x" Completed="showMoreBox_Completed" FillBehavior="HoldEnd"> 
    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="showMore"> 
     <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"> 
      <EasingDoubleKeyFrame.EasingFunction> 
       <CubicEase EasingMode="EaseOut"/> 
      </EasingDoubleKeyFrame.EasingFunction> 
     </EasingDoubleKeyFrame> 
     <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/> 
    </DoubleAnimationUsingKeyFrames> 
</Storyboard> 
+0

的感謝!完美地工作! – Reuven